Closed
Bug 554551
Opened 14 years ago
Closed 6 years ago
Profiler (vprof.cpp) does not check for NULL return from malloc calls
Categories
(Tamarin Graveyard :: Tools, defect)
Tamarin Graveyard
Tools
Tracking
(Not tracked)
RESOLVED
WONTFIX
Future
People
(Reporter: wmaddox, Unassigned)
References
Details
Unlike C++ new, malloc does not throw an exception. NULL values can be returned and subsequently dereferenced. This issue was identified by inspection, and no actual failure has been observed.
Comment 1•14 years ago
|
||
BTW we turn off exceptions on all platforms, but we should not be relying on NULL returns anywhere except: - when calling VMPI_alloc directly - when calling FixedMalloc::PleaseAlloc or passing the kCanFail flag to various allocator routines - when calling the system 'new' operator directly rather than through the mmfx_new macros
Comment 2•14 years ago
|
||
Conversation with Lars indicates that vprof.cpp probably should not be invoking malloc but rather its VMPI_ equivalent, VMPI_alloc.
Updated•14 years ago
|
Flags: flashplayer-qrb?
Blocks: Profiler_bugs
Assignee: nobody → fklockii
Flags: flashplayer-qrb? → flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → flash10.1
Comment 3•14 years ago
|
||
So, I can do the trivial text replacement of malloc with VMPI_alloc, but that is not going to resolve the issue that wmaddox is raising: the code in question still won't attempt to deal with null returns from the allocation routine. So what should response to allocation failure be? Sudden death? Or abandonment of the gathered profiler information? Also, is vprof data a user-visible feature? (I infer not, based on the simplicity of the utility.) Therefore I am not sure this /needs/ to go into 10.1 ...
Comment 4•14 years ago
|
||
(In reply to comment #3) > Also, is vprof data a user-visible feature? (I infer not, based on the > simplicity of the utility.) Therefore I am not sure this /needs/ to go into > 10.1 ... Yeah, I was surprised this was targeted for 10.1 too. Check with Ed.
Retargeting to Future.
Priority: P3 → --
Target Milestone: flash10.1 → Future
Comment 6•6 years ago
|
||
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Comment 7•6 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in
before you can comment on or make changes to this bug.
Description
•