RESOLVED FIXED 235423
[libpas] Ensure pas_allocation_callback and pas_deallocation_callback are initialized as NULL
https://bugs.webkit.org/show_bug.cgi?id=235423
Summary [libpas] Ensure pas_allocation_callback and pas_deallocation_callback are ini...
Yusuke Suzuki
Reported 2022-01-20 16:07:01 PST
[JSC] Ensure pas_allocation_callback and pas_deallocation_callback are initialized as NULL
Attachments
Patch (2.93 KB, patch)
2022-01-20 16:08 PST, Yusuke Suzuki
no flags
Patch (2.94 KB, patch)
2022-01-20 16:09 PST, Yusuke Suzuki
no flags
Yusuke Suzuki
Comment 1 2022-01-20 16:08:20 PST
Yusuke Suzuki
Comment 2 2022-01-20 16:09:55 PST
Mark Lam
Comment 3 2022-01-20 16:11:51 PST
Comment on attachment 449619 [details] Patch r=me
EWS
Comment 4 2022-01-20 17:37:50 PST
Committed r288339 (246245@main): <https://commits.webkit.org/246245@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 449619 [details].
Radar WebKit Bug Importer
Comment 5 2022-01-20 17:38:18 PST
Filip Pizlo
Comment 6 2022-01-20 18:47:13 PST
Comment on attachment 449619 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449619&action=review > Source/bmalloc/libpas/src/libpas/pas_allocation_callbacks.c:33 > +pas_allocation_callback_t pas_allocation_callback = NULL; > +pas_deallocation_callback_t pas_deallocation_callback = NULL; The "_t" suffix isn't used by any types in libpas other than this. I think that the way that I would normally do this is call the type "pas_allocation_callback" and call the variable "pas_allocation_callback_instance". Saying "pas_allocation_callback_type" could be cool too.
Yusuke Suzuki
Comment 7 2022-01-21 14:00:07 PST
Yusuke Suzuki
Comment 8 2022-01-21 14:14:58 PST
(In reply to Filip Pizlo from comment #6) > Comment on attachment 449619 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=449619&action=review > > > Source/bmalloc/libpas/src/libpas/pas_allocation_callbacks.c:33 > > +pas_allocation_callback_t pas_allocation_callback = NULL; > > +pas_deallocation_callback_t pas_deallocation_callback = NULL; > > The "_t" suffix isn't used by any types in libpas other than this. I think > that the way that I would normally do this is call the type > "pas_allocation_callback" and call the variable > "pas_allocation_callback_instance". Saying "pas_allocation_callback_type" > could be cool too. Changed the typenames.
Note You need to log in before you can comment on or make changes to this bug.