Skip to content

UndefinedBehaviorSanitizer: signed integer overflow issue#793

Open
sam-svutkoor wants to merge 2 commits intoqualcomm:mainfrom
sam-svutkoor:sanity-fix
Open

UndefinedBehaviorSanitizer: signed integer overflow issue#793
sam-svutkoor wants to merge 2 commits intoqualcomm:mainfrom
sam-svutkoor:sanity-fix

Conversation

@sam-svutkoor
Copy link

eld/lib/Target/RISCV/RISCVHelper.h:243:18: runtime error: signed integer overflow: 2147483628 + 2048 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior RISCVHelper.h:243:18
this commit fixes the build failure for picolibc riscv64-bm sanity
Removes signed overflow UBSan complaining

@quic-seaswara
Copy link
Contributor

pls sign the commit. thanks for the patch

@sam-svutkoor sam-svutkoor force-pushed the sanity-fix branch 2 times, most recently from dd874d4 to 6166eb0 Compare February 9, 2026 07:04
runtime error: signed integer overflow: 2147483628 + 2048 cannot be represented in type 'int' fix

Change-Id: I80a56d59d9a36a70bf40a6fed4e91d875456c909
Signed-off-by: svutkoor <svutkoor@qti.qualcomm.com>
Change-Id: Ie9f312686011bf5bca1ae367f776ec8090ce77c0
Signed-off-by: Sampath Vutkoori <svutkoor@qti.qualcomm.com>
Signed-off-by: svutkoor <svutkoor@qti.qualcomm.com>
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