Commit c64e0797 authored by Gabriel de Perthuis's avatar Gabriel de Perthuis Committed by Jean-Baptiste Kempf

Prevent potential null pointer dereference in zip access

Close #12149
Close #13815
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 3c53c13138225c4b2414ab8358847197cf29b718)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9dc63402
...@@ -713,7 +713,7 @@ static node* findOrCreateParentNode( node *root, const char *fullpath ) ...@@ -713,7 +713,7 @@ static node* findOrCreateParentNode( node *root, const char *fullpath )
while( current ) while( current )
{ {
if( !strcmp( current->name, folder ) ) if( current->name && !strcmp( current->name, folder ) )
{ {
/* We found the folder, go recursively deeper */ /* We found the folder, go recursively deeper */
node *parentNode = findOrCreateParentNode( current, sep ); node *parentNode = findOrCreateParentNode( current, sep );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment