-
Notifications
You must be signed in to change notification settings - Fork 399
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
avoid negative repeat_count fixes #1760 #1766
base: main
Are you sure you want to change the base?
Conversation
Nice find, interesting that this unsigned underflow was never triggered before. Can you provide a minimal example diff which triggers this so it can be called with |
fffa015
to
1e3e9bc
Compare
|
1e3e9bc
to
ad812b8
Compare
@th1000s are my latest changes what you had in mind ? |
Yes, however when keeping the test and reverting your fix, then running Can you reproduce this when piping your example input into the delta (debug build) binary? And can you reproduce this when specifying |
ad812b8
to
a0d0786
Compare
@th1000s I think it looks better now |
a0d0786
to
38df306
Compare
Nice, thank you for the investigation, looks like styling zero hunks is not tested enough. And because of this other bug you found (but is now nicely reproducible) let's just add And when you set the expected output in |
+ | ||
+echo "=== VALIDATE UNDERFLOW" | ||
+/usr/local/bin/check_underflow | ||
+ | ||
# this is an example of the underflow error | ||
echo "=== UNDERFLOW_EXEC" | ||
UNDERFLOW_EXEC -i foobar.yaml | ||
|
||
"#; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leave out almost all of these +- lines, as you found out the context before the changed lines was the cause.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any concerns leaving as is ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it makes the minimal reproducer diff larger than it has to be, and the text sort of indicates that it's these lines. As you have to rebase anyhow to make it build with rust 1.80, maybe you can also trim the added lines down to one or two.
38df306
to
0fcdd92
Compare
0fcdd92
to
9c4f98a
Compare
No description provided.