Skip to content

Conversation

drinkcat
Copy link
Collaborator

@drinkcat drinkcat commented Apr 4, 2025

Otherwise, seq crashes with 0xee. as input.

Also update one of the tests to catch that.

Copy link

github-actions bot commented Apr 4, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@@ -867,7 +867,7 @@ fn test_parse_valid_hexadecimal_float_two_args() {
(["0x.8p16", "32768"], "32768\n"),
(["0xffff.4p-4", "4096"], "4095.95\n"),
(["0xA.A9p-1", "6"], "5.33008\n"),
(["0xa.a9p-1", "6"], "5.33008\n"),
([" 0xa.a9p-1", "6"], "5.33008\n"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This passes without the changes made to numberparse.rs. Why not use the input ( 0xee.) that causes the crash?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh you're right. Fixing.

Otherwise, `seq` crashes with ` 0xee.` as input.

Also update one of the tests to catch that.
Copy link

github-actions bot commented Apr 4, 2025

GNU testsuite comparison:

Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker merged commit b860ce8 into uutils:main Apr 4, 2025
67 of 68 checks passed
@cakebaker
Copy link
Contributor

Thanks!

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.

2 participants