increase size limit for b64 encoded-data
we had 1 mb limit, but some large cmyk profiles can bust through that, up it to 10mb
This commit is contained in:
parent
89509337d1
commit
881f340610
@ -168,9 +168,11 @@ vips__b64_encode( const unsigned char *data, size_t data_length )
|
||||
int i;
|
||||
int cursor;
|
||||
|
||||
if( output_data_length > 1024 * 1024 ) {
|
||||
if( output_data_length > 10 * 1024 * 1024 ) {
|
||||
/* We shouldn't really be used for large amounts of data, plus
|
||||
* we are using int offsets.
|
||||
*
|
||||
* A large ICC profile can be 1MB, so allow 10MB of b64.
|
||||
*/
|
||||
vips_error( "vips__b64_encode", "%s", _( "too much data" ) );
|
||||
return( NULL );
|
||||
|
Loading…
Reference in New Issue
Block a user