WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
103586
Stop using the static char buffer[thingy] idiom for stringifying objects
https://bugs.webkit.org/show_bug.cgi?id=103586
Summary
Stop using the static char buffer[thingy] idiom for stringifying objects
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
Add attachment
proposed patch, testcase, etc.
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