Skip to content

Fix nil panic in NumDigits for large negative numbers#149

Merged
yuzefovich merged 1 commit intomasterfrom
fix-large-negative
Mar 23, 2026
Merged

Fix nil panic in NumDigits for large negative numbers#149
yuzefovich merged 1 commit intomasterfrom
fix-large-negative

Conversation

@yuzefovich
Copy link
Member

Variable shadowing bug caused nil pointer dereference when computing digit count for negative BigInts exceeding 128 bits.

Fixes cockroachdb/cockroach#165525

Variable shadowing bug caused nil pointer dereference when computing
digit count for negative BigInts exceeding 128 bits.

Fixes cockroachdb/cockroach#165525

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@yuzefovich yuzefovich requested review from michae2 and mw5h March 23, 2026 23:23
Copy link
Contributor

@michae2 michae2 left a comment

Choose a reason for hiding this comment

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

LGTM, nice fix!

@yuzefovich
Copy link
Member Author

TFTR!

@yuzefovich yuzefovich merged commit 6d9c587 into master Mar 23, 2026
18 checks passed
@yuzefovich yuzefovich deleted the fix-large-negative branch March 23, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants