mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 987625 - Conditionally define MOZ_PNG_MAX_DIMENSION. r=jrmuizel
This commit is contained in:
parent
305d15f8a8
commit
0f9ec1bc43
@ -46,6 +46,11 @@ GetPNGDecoderAccountingLog()
|
||||
}
|
||||
#endif
|
||||
|
||||
/* limit image dimensions (bug #251381, #591822, and #967656) */
|
||||
#ifndef MOZ_PNG_MAX_DIMENSION
|
||||
# define MOZ_PNG_MAX_DIMENSION 32767
|
||||
#endif
|
||||
|
||||
// For size decodes
|
||||
#define WIDTH_OFFSET 16
|
||||
#define HEIGHT_OFFSET (WIDTH_OFFSET + 4)
|
||||
|
@ -7,7 +7,9 @@
|
||||
#define PNGLCONF_H /* So we don't try to use libpng's pnglibconf.h */
|
||||
|
||||
/* limit image dimensions (bug #251381, #591822, and #967656) */
|
||||
#define MOZ_PNG_MAX_DIMENSION 32767
|
||||
#ifndef MOZ_PNG_MAX_DIMENSION
|
||||
# define MOZ_PNG_MAX_DIMENSION 32767
|
||||
#endif
|
||||
|
||||
#define PNG_API_RULE 0
|
||||
#define PNG_COST_SHIFT 3
|
||||
|
Loading…
Reference in New Issue
Block a user