mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mem: Don't abort on av_malloc(0) in debug mode
This makes the behaviour consistent between debug and release mode. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
5467742232
commit
620b1e7e98
@ -68,8 +68,6 @@ void *av_malloc(size_t size)
|
||||
long diff;
|
||||
#endif
|
||||
|
||||
assert(size);
|
||||
|
||||
/* let's disallow possible ambiguous cases */
|
||||
if (size > (INT_MAX-32) || !size)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user