don't read more memory than available in jpg decode
This commit is contained in:
parent
c77f537ae3
commit
7132b492dd
3 changed files with 30 additions and 10 deletions
|
@ -874,7 +874,7 @@ EXTERN void jpeg_destroy_decompress JPP((j_decompress_ptr cinfo));
|
|||
/* Standard data source and destination managers: stdio streams. */
|
||||
/* Caller is responsible for opening the file before and closing after. */
|
||||
EXTERN void jpeg_stdio_dest JPP((j_compress_ptr cinfo, FILE * outfile));
|
||||
EXTERN void jpeg_stdio_src JPP((j_decompress_ptr cinfo, unsigned char *infile));
|
||||
EXTERN void jpeg_mem_src JPP((j_decompress_ptr cinfo, unsigned char *buffer, size_t size));
|
||||
|
||||
/* Default parameter setup for compression */
|
||||
EXTERN void jpeg_set_defaults JPP((j_compress_ptr cinfo));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue