WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
142224
BitStack::top() should calculate an index instead of always using m_words.last()
https://bugs.webkit.org/show_bug.cgi?id=142224
Summary
BitStack::top() should calculate an index instead of always using m_words.last()
W. James MacLean
Reported
2015-03-03 10:24:44 PST
BitStack::push() calculates an index based on m_size to determine where the new entry is supposed to go. However, BitStack::top() always looks up the bit value using m_words.last(), which can be wrong if popping elements has caused m_size to point into a word other than the last one (simple test: push 'true' 33 times, then pop() once and call top() ... it will read 'false'.) BitStack::top() should instead calculate an index the same as push().
Attachments
Add attachment
proposed patch, testcase, etc.
EWS
Comment 1
2022-12-21 07:07:02 PST
Committed
258190@main
(409456bc5cee): <
https://commits.webkit.org/258190@main
> Reviewed commits have been landed. Closing PR #7888 and removing active labels.
Radar WebKit Bug Importer
Comment 2
2022-12-21 07:08:16 PST
<
rdar://problem/103597584
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug