Bug 254035 - Fix undefined behavior in pas_bitvector.h's PAS_BITVECTOR_BIT_MASK()
Summary: Fix undefined behavior in pas_bitvector.h's PAS_BITVECTOR_BIT_MASK()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: bmalloc (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-16 10:33 PDT by Chris Dumez
Modified: 2023-03-16 13:27 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2023-03-16 10:33:00 PDT
Fix undefined behavior in pas_bitvector.h's PAS_BITVECTOR_BIT_MASK():
/Volumes/Work/WebKit/OpenSource/Source/bmalloc/libpas/src/libpas/pas_bitvector.h:97:24: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Volumes/Work/WebKit/OpenSource/Source/bmalloc/libpas/src/libpas/pas_bitvector.h:97:24 in
Comment 1 Chris Dumez 2023-03-16 10:36:20 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11613
Comment 2 EWS 2023-03-16 13:26:31 PDT
Committed 261764@main (0d4acd6a56aa): <https://commits.webkit.org/261764@main>

Reviewed commits have been landed. Closing PR #11613 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-03-16 13:27:16 PDT
<rdar://problem/106823872>