mirror of
https://github.com/php/php-src.git
synced 2024-11-23 01:44:06 +08:00
2d1c3825a8
According to the WBMP specification[1], the first field (type) of a WBMP is a multi-byte integer, but only type `0` is supported. Thus there is no need to read a multi-byte integer. The second field (fix header) is a single byte; reading a multi-byte integer is not really wrong, since the fix header field is laid out in a way which allows it to be treated as such, but the check whether the MBI is greater than or equal to zero is pretty useless, because negative values could only be returned if overflow occurs (MBIs are unsigned). So the only useful assumption we can make is that the first byte is zero; we let `gdImageCreateFromWBMPCtx()` figure out the rest. [1] <https://www.wapforum.org/what/technical/SPEC-WAESpec-19990524.pdf> section 6 |
||
---|---|---|
.. | ||
libgd | ||
tests | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
gd_arginfo.h | ||
gd_compat.c | ||
gd_compat.h | ||
gd.c | ||
gd.stub.php | ||
php_gd.h |