WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 114356
REGRESSION(
r148034
): IconDatabase::updatIconRecord crashes with null iconData and iconBitmap.
https://bugs.webkit.org/show_bug.cgi?id=114356
Summary
REGRESSION(r148034): IconDatabase::updatIconRecord crashes with null iconData...
Raphael Kubo da Costa (:rakuco)
Reported
2013-04-10 06:53:59 PDT
REGRESSION(
r148034
): IconDatabase::updatIconRecord crashes with null iconData and iconBitmap.
Attachments
Patch
(2.04 KB, patch)
2013-04-10 06:57 PDT
,
Raphael Kubo da Costa (:rakuco)
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Raphael Kubo da Costa (:rakuco)
Comment 1
2013-04-10 06:57:37 PDT
Created
attachment 197262
[details]
Patch
Tim Horton
Comment 2
2013-04-10 08:45:53 PDT
Comment on
attachment 197262
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=197262&action=review
> Source/WebCore/loader/icon/IconDatabase.cpp:541 > + ASSERT(!(!!iconData && !!iconBitmap));
!! is a bit bizarre but there are other instances of it around. But I wonder why && alone isn't enough?
Raphael Kubo da Costa (:rakuco)
Comment 3
2013-04-10 09:05:55 PDT
(In reply to
comment #2
)
> (From update of
attachment 197262
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=197262&action=review
> > > Source/WebCore/loader/icon/IconDatabase.cpp:541 > > + ASSERT(!(!!iconData && !!iconBitmap)); > > !! is a bit bizarre but there are other instances of it around. But I wonder why && alone isn't enough?
I was just being extra-cautious here; PassRefPtr::operator!() was casting them into bools, and I'm adding an extra ! to get the "original" boolean value.
Raphael Kubo da Costa (:rakuco)
Comment 4
2013-04-10 09:12:21 PDT
Committed
r148097
: <
http://trac.webkit.org/changeset/148097
>
Darin Adler
Comment 5
2013-04-10 09:42:32 PDT
Comment on
attachment 197262
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=197262&action=review
>>> Source/WebCore/loader/icon/IconDatabase.cpp:541 >>> + ASSERT(!(!!iconData && !!iconBitmap)); >> >> !! is a bit bizarre but there are other instances of it around. But I wonder why && alone isn't enough? > > I was just being extra-cautious here; PassRefPtr::operator!() was casting them into bools, and I'm adding an extra ! to get the "original" boolean value.
No, those !! are not needed unless there is a bug in PassRefPtr. The && operator should work fine with two PassRefPtr values without requiring the ! at all. It would be nice to remove those.
Raphael Kubo da Costa (:rakuco)
Comment 6
2013-04-11 02:16:28 PDT
(In reply to
comment #5
)
> (From update of
attachment 197262
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=197262&action=review
> > >>> Source/WebCore/loader/icon/IconDatabase.cpp:541 > >>> + ASSERT(!(!!iconData && !!iconBitmap)); > >> > >> !! is a bit bizarre but there are other instances of it around. But I wonder why && alone isn't enough? > > > > I was just being extra-cautious here; PassRefPtr::operator!() was casting them into bools, and I'm adding an extra ! to get the "original" boolean value. > > No, those !! are not needed unless there is a bug in PassRefPtr. The && operator should work fine with two PassRefPtr values without requiring the ! at all. > > It would be nice to remove those.
https://bugs.webkit.org/show_bug.cgi?id=114425
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