Bug 103586
| Summary: | Stop using the static char buffer[thingy] idiom for stringifying objects | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> |
| Component: | JavaScriptCore | Assignee: | 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
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. |