Skip to content

Conversation

ferdymercury
Copy link
Collaborator

This Pull request:

Changes or fixes:

reported by asan

/opt/root_src/misc/minicern/src/cernlib.c:82:18: runtime error: left shift of negative value -2012982016
/opt/root_src/misc/minicern/src/cernlib.c:83:18: runtime error: left shift of negative value -2012982016
/opt/root_src/misc/minicern/src/cernlib.c:102:12: runtime error: left shift of 1212370737 by 8 places cannot be represented in type 'int'
/opt/root_src/misc/minicern/src/cernlib.c:102:39: runtime error: left shift of 1212370737 by 24 places cannot be represented in type 'int'

reported by asan

/opt/root_src/misc/minicern/src/cernlib.c:82:18: runtime error: left shift of negative value -2012982016
/opt/root_src/misc/minicern/src/cernlib.c:83:18: runtime error: left shift of negative value -2012982016
/opt/root_src/misc/minicern/src/cernlib.c:102:12: runtime error: left shift of 1212370737 by 8 places cannot be represented in type 'int'
/opt/root_src/misc/minicern/src/cernlib.c:102:39: runtime error: left shift of 1212370737 by 24 places cannot be represented in type 'int'
@ferdymercury ferdymercury requested a review from dpiparo as a code owner June 26, 2025 14:47
@ferdymercury ferdymercury requested a review from hahnjo June 26, 2025 14:47
@ferdymercury ferdymercury changed the title [cernlib] avoid undefined behavior in h2root [cernlib] avoid asan warning / maybe undefined behavior in h2root Jun 26, 2025
@ferdymercury ferdymercury requested a review from couet June 26, 2025 15:03
@ferdymercury

This comment was marked as outdated.

@ferdymercury ferdymercury requested a review from silverweed June 26, 2025 16:10
Copy link

github-actions bot commented Jun 26, 2025

Test Results

    20 files      20 suites   3d 8h 20m 12s ⏱️
 3 066 tests  3 066 ✅ 0 💤 0 ❌
59 712 runs  59 712 ✅ 0 💤 0 ❌

Results for commit 9b628ac.

♻️ This comment has been updated with latest results.

@ferdymercury
Copy link
Collaborator Author

Hi, I'd propose merging this as-is and moving the pending warnings to a new GH issue to keep track of those.

@pcanal
Copy link
Member

pcanal commented Jul 8, 2025

Hi, I'd propose merging this as-is and moving the pending warnings to a new GH issue to keep track of those.

Was the issue opened?

@ferdymercury
Copy link
Collaborator Author

Was the issue opened?

No, since this was not yet merged

@ferdymercury ferdymercury mentioned this pull request Jul 10, 2025
1 task
@ferdymercury
Copy link
Collaborator Author

Was the issue opened?

is now #19329

@ferdymercury ferdymercury requested a review from pcanal July 16, 2025 16:07
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.

3 participants