Skip to content

gdt: Fix off-by-one error in from_raw_slice() - #269

Merged
josephlr merged 1 commit into
masterfrom
off_by_one
Jul 7, 2021
Merged

josephlr merged 1 commit into
masterfrom
off_by_one

Conversation

@josephlr

Copy link
Copy Markdown
Contributor

We use our poor-man's assert instead of trying to do math.

Fixes error pointed out by @toku-sa-n and @phil-opp here: #255 (comment)

Uses technique from: #264 (comment)

Signed-off-by: Joe Richey joerichey@google.com

@josephlr
josephlr requested a review from phil-opp June 22, 2021 09:27
@josephlr josephlr mentioned this pull request Jun 22, 2021
@josephlr

josephlr commented Jul 7, 2021

Copy link
Copy Markdown
Contributor Author

@phil-opp does this look good?

@josephlr
josephlr enabled auto-merge (squash) July 7, 2021 13:21
We use our poor-man's assert instead of trying to do math.

Signed-off-by: Joe Richey <joerichey@google.com>

@phil-opp phil-opp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

@josephlr
josephlr merged commit 134cacd into master Jul 7, 2021
@josephlr
josephlr deleted the off_by_one branch July 7, 2021 16:21
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