Commits
- Commit:
fa325e9b42b0bdfb48857d1958d9fb7ceac55151
- From:
- Dan Cross <cross@gajendra.net>
- Date:
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.
Signed-off-by: Dan Cross <cross@gajendra.net>
- Commit:
16d00819899260085ee10949012b07bf1c203db6
- From:
- Russ Cox <rsc@swtch.com>
- Date:
libdraw: redo default font construction to be hidpi-safe
If $font is not set, the default font is constructed from
font data linked into every libdraw binary. That process
was different from the usual openfont code, and so it was
not hidpi-aware, resulting in very tiny fonts out of the box
on hidpi systems, until users set $font.
Fix this by using openfont to construct the default font,
by recognizing the name *default* when looking for
font and subfont file contents. Then all the hidpi scaling
applies automatically.
As a side effect, the concept of a 'default subfont' is gone,
as are display->defaultsubfont, getdefont, and memgetdefont.
- Commit:
94b38bdb722052838eb0d940c05995b870db4ea0
- From:
- Ray Lai <ray@raylai.com>
- Via:
- Gleydson Soares <gsoares@gmail.com>
- Date:
libdraw: replace hand-rolled realloc, preventing buffer overflow.
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>
- Commit:
ca63c078d9b658b2f8d99c8e3e1a2389d0e7f6d7
- From:
- rsc <devnull@localhost>
- Date:
more places where display can be nil
- Commit:
d4aef6a074bedb42ab9c400b5f998dd79bc57d00
- From:
- rsc <devnull@localhost>
- Date:
handle arbitrary length names in subfontname.
handle overflow in offset computation in font.c
- Commit:
4e206880423db866dd1db0622a9b4d5b0881fee1
- From:
- rsc <devnull@localhost>
- Date:
make it possible to access fonts without a display.
- Commit:
15680d56a6c6e15921d958aa6006825c2cd20bf8
- From:
- rsc <devnull@localhost>
- Date:
Amazingly picky bug fixes from Valgrind.
- Commit:
76193d7cb0457807b2f0b95f909ab5de19480cd7
- From:
- rsc <devnull@localhost>
- Date:
Initial revision