| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The common gd.h already provides this.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2019-11038
Bug-Debian: https://bugs.debian.org/929821
Bug: https://github.com/libgd/libgd/issues/501
We have to ensure that `sscanf()` does indeed read a hex value here,
and bail out otherwise.
Original patch by Christoph M. Becker <cmbecker69@gmx.de> for PHP libgd ext.
https://git.php.net/?p=php-src.git;a=commit;h=ed6dee9a198c904ad5e03113e58a2d2c200f5184
|
|
|
|
|
| |
This is preparation for adding some linting checks for new commits from
people. Shouldn't be any functional changes here (tests still pass!).
|
|
|
|
|
| |
We also improve the related documentation, which didn't mention yet
which X bitmap formats are supported.
|
|
|
|
|
| |
When calculating the number of required bytes of an XBM image, we have
to take the line padding into account.
|
|
|
|
|
|
| |
This makes the code better readable in the sources, and we get syntax
highlighting in the generated HTML wherever we want it (i.e. not necessarily
always as with `-hl all`).
|
|
|
|
|
| |
To do so we have to add Menu.txt to the project, but we can ignore
Languages.txt and Topics.txt, at least for now.
|
|
|
|
|
| |
We add only minimal documentation comments for now, but at least that lets
Natural Docs add the function prototypes to the documentation.
|
|
|
|
|
| |
We remove this limitation by fixing the underlying implementation bug,
and add a respective regression test to the suite.
|
|
|
|
|
|
|
|
|
|
| |
We use the name passed in to printf into a local stack buffer which is
limited to 4000 bytes. So given a large enough value, lots of stack
data is leaked. Rewrite the code to do simple memory copies with most
of the strings to avoid that issue, and only use stack buffer for small
numbers of constant size.
This closes #211.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changeset imports documention for gdImage to gdImagePng*() into
Natural Docs. Documention is based on the text of the original
manual, version 2.0.36 but adapted to better suit the format.
Subsequent changesets will introduce docs for subsequent manual
entries.
naturaldocs, when present, is invoked by bootstrap.sh. The completed
manual will be in docs/naturaldocs/html/index.html. It can also be
explicitly invoked by running docs/naturaldocs/run_docs.sh.
This change also removed docs/naturaldocs/project/Menu.txt, since it
currently contains no non-generated content and is prone to introduce
noise into the changeset.
|
|
|
|
| |
[-Wimplicit-function-declaration] etc.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When glibc fortify is enabled, we get this warning:
gd_xbm.c: In function 'gdCtxPrintf':
gd_xbm.c:150:2: warning: passing argument 1 of 'vsnprintf' from incompatible pointer type [enabled by default]
len = vsnprintf(&buf, sizeof(buf)-1, format, args);
^
In file included from /usr/include/stdio.h:937:0,
from gd_xbm.c:5:
/usr/include/bits/stdio2.h:74:42: note: expected 'char * __restrict__' but argument is of type 'char (*)[4096]'
__NTH (vsnprintf (char *__restrict __s, size_t __n,
^
Since &buf and buf are in practice the same pointer with arrays like
this, drop the & to fix the warning.
|
|
|