summaryrefslogtreecommitdiffstats
path: root/src/libdraw/font.c
Commit message (Collapse)AuthorAgeFilesLines
* libdraw: replace hand-rolled realloc, preventing buffer overflow.Ray Lai2017-04-081-3/+1
| | | | | | | | | | | | | | The original buffer is f->nsubf*sizeof *subf bytes (oldsize) large. Once it's full, a new buffer of (f->nsubf+DSUBF)*sizeof *subf (newsize) is mallocated. Unfortunately memmove() reads (newsize) bytes from the original (oldsize) buffer, causing a buffer overflow. By switching to realloc(), we don't need to do buffer size calculation, memmoving, and freeing of the original buffer. Change-Id: Ibf85bc06abe1c8275b11acb1d7d346a14291d2cd Reviewed-on: https://plan9port-review.googlesource.com/1520 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
* more places where display can be nilrsc2005-07-131-1/+1
|
* handle arbitrary length names in subfontname.rsc2005-05-121-3/+5
| | | | handle overflow in offset computation in font.c
* make it possible to access fonts without a display.rsc2004-04-251-3/+10
|
* Amazingly picky bug fixes from Valgrind.rsc2004-03-051-1/+1
|
* Initial revisionrsc2003-09-301-0/+401