Skip to content

generator: Protect against invalid values#965

Merged
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:generator-inv-value-handling
Jul 6, 2026
Merged

generator: Protect against invalid values#965
robertbaldyga merged 1 commit into
Open-CAS:masterfrom
robertbaldyga:generator-inv-value-handling

Conversation

@robertbaldyga

Copy link
Copy Markdown
Member

Fixes #964

__builtin_clz() produces undefined behavior for argument equal 0.
Implement proper handing of such a case.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga robertbaldyga force-pushed the generator-inv-value-handling branch from a67ad59 to f8763a0 Compare July 6, 2026 13:48
@robertbaldyga robertbaldyga merged commit 49be5af into Open-CAS:master Jul 6, 2026
5 checks passed
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.

Zero passed to __builtin_clz() on small caches.

2 participants