Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Add test ensuring data segment index is unsigned#136

Merged
binji merged 1 commit intomasterfrom
seg-index-test
Jan 28, 2020
Merged

Add test ensuring data segment index is unsigned#136
binji merged 1 commit intomasterfrom
seg-index-test

Conversation

@binji
Copy link
Member

@binji binji commented Jan 23, 2020

Decoding 64 as an signed LEB will produce the value -64 = 4294967232.
This change adds tests to ensure that the segment is decoded as 64.

Decoding 64 as an signed LEB will produce the value -64 = 4294967232.
This change adds tests to ensure that the segment is decoded as 64.
@binji binji requested review from gahaas and lars-t-hansen January 23, 2020 22:48
@binji
Copy link
Member Author

binji commented Jan 23, 2020

This is a silly mistake to make. But I made it, so perhaps we should add it to the test suite. :-)

Copy link
Contributor

@lars-t-hansen lars-t-hansen left a comment

Choose a reason for hiding this comment

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

A good one.

@binji binji merged commit 11388e7 into master Jan 28, 2020
@binji binji deleted the seg-index-test branch January 28, 2020 17:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants