| Summary: | SDL_malloc.c - bug in allocation | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Alex <alex.d> |
| Component: | *don't know* | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P1 | ||
| Version: | 1.2.11 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Alex
2007-05-15 08:12:19 UTC
Bumping a bunch of bugs to Priority 1 for consideration for the 1.2.12 release. --ryan. Is there any chance you can give a simple test case to reproduce the problem? Or lacking that, a step by step trace through the function showing all variable values? Thanks! Date: Sun, 15 Jul 2007 17:55:33 -0400 From: Doug Lea To: Sam Lantinga <slouken@devolution.com> Subject: Re: SDL_malloc.c bug details (fwd) A first pass diagnosis is that when alignment is greater than reserved footer space, further padding is necessary. (A quick fix is just to add one alignment's worth to request size, but it is likely that this can be reduced with some thought.) -Doug The suggested fix was approved by Doug Lea and checked into subversion. "overkill, but safe" He's going to have a new release of his malloc implementation sometime next month and I'll use that when it's released. |