Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix[test]: fix failure in grammar fuzzing #3892

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Mar 26, 2024

fixes a fuzz failure, which is that the strategy can put utf-8 characters in strings (which we reject at compile-time). the fix here is to just create programs with ascii. this bug was apparently introduced in 176e7f7 due to the new alphabet parameter passed to the grammar strategy.

What I did

fix #3875

How I did it

How to verify it

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

fixes a fuzz failure, which is that the strategy can put utf-8
characters in strings (which we reject at compile-time). the fix here is
to just create programs with ascii. this bug was apparently introduced
in 176e7f7 due to the new alphabet
parameter passed to the grammar strategy.
@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.36%. Comparing base (ea7f081) to head (80cf790).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3892   +/-   ##
=======================================
  Coverage   86.36%   86.36%           
=======================================
  Files          92       92           
  Lines       14025    14025           
  Branches     3082     3082           
=======================================
  Hits        12112    12112           
  Misses       1485     1485           
  Partials      428      428           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper marked this pull request as ready for review March 26, 2024 20:23
@charles-cooper charles-cooper merged commit 6e9b2c9 into vyperlang:master Mar 26, 2024
148 checks passed
@charles-cooper charles-cooper deleted the fix/grammar-fuzz branch March 26, 2024 20:32
electriclilies pushed a commit to electriclilies/vyper that referenced this pull request Apr 27, 2024
fixes a fuzz failure, which is that the strategy can put utf-8
characters in strings (which we reject at compile-time). the fix here is
to just create programs with ascii. this bug was apparently introduced
in 176e7f7 due to the new alphabet
parameter passed to the grammar strategy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[test suite] grammar fuzz failure with utf-8
3 participants