Skip to content
Snippets Groups Projects
Commit 5ebf9e28 authored by Romain Vimont's avatar Romain Vimont Committed by Steve Lhomme
Browse files

vlc_vector: assert count argument is not 0

Several vlc_vector functions must not be called with count == 0:
 - it's useless (e.g. pushing 0 items to a vector)
 - with the current implementation, it can cause memcpy() to be called
   to copy 0 bytes (useless) with NULL pointer for the src parameter
   (triggers an error in ASAN).
parent 279758e3
No related branches found
No related tags found
1 merge request!3254randomizer: do not pass NULL to memcpy()
Pipeline #312577 passed with stage
in 18 minutes and 38 seconds