[vlc-commits] [Git][videolan/vlc][3.0.x] archive: do not seek to negative absolute position

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Aug 15 10:21:24 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
af406e87 by Steve Lhomme at 2026-08-15T09:33:08+00:00
archive: do not seek to negative absolute position

(cherry picked from commit 6cccb39fd6083518429056a20fa67113073dc49d)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

- - - - -


1 changed file:

- modules/stream_extractor/archive.c


Changes:

=====================================
modules/stream_extractor/archive.c
=====================================
@@ -173,7 +173,7 @@ static la_int64_t libarchive_seek_cb( libarchive_t* p_arc, void* p_obj,
 
     }
 
-    if( whence_pos < 0 || vlc_stream_Seek( p_source, whence_pos + offset ) )
+    if( whence_pos < -offset || vlc_stream_Seek( p_source, whence_pos + offset ) )
         return ARCHIVE_FATAL;
 
     return vlc_stream_Tell( p_source );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/af406e87b3b0ad7f034dff2b8ccf376742c80555

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/af406e87b3b0ad7f034dff2b8ccf376742c80555
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list