Bug 103586

Summary: Stop using the static char buffer[thingy] idiom for stringifying objects
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: NEW    
Severity: Normal CC: barraclough, ggaren, mark.lam, mhahnenberg, msaboff, oliver, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 103584    
Bug Blocks:    

Filip Pizlo
Reported 2012-11-28 17:50:46 PST
We often do things like: const char* Thingy::describe() { static char buffer[256]; snprintf(buffer, sizeof(buffer), "stuffs"); return buffer; } We should stop doing that.
Attachments
Note You need to log in before you can comment on or make changes to this bug.