Skip to content

Prevent --batch from overflowing the uint8_t it is being stored in#770

Merged
phillip-stephens merged 1 commit intozmap:mainfrom
droe:droe/fix-batch-overflow
Feb 2, 2024
Merged

Prevent --batch from overflowing the uint8_t it is being stored in#770
phillip-stephens merged 1 commit intozmap:mainfrom
droe:droe/fix-batch-overflow

Conversation

@droe
Copy link
Contributor

@droe droe commented Feb 2, 2024

Prevents crash for --batch sizes of multiples of 256, which stored in zconf.batch of type uint8_t end up as 0.

/cc @phillip-stephens

Copy link
Contributor

@phillip-stephens phillip-stephens left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this!

@phillip-stephens phillip-stephens merged commit 921ceaf into zmap:main Feb 2, 2024
@droe droe deleted the droe/fix-batch-overflow branch March 11, 2024 08:00
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