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

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Aug 7 06:29:16 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
6cccb39f by Steve Lhomme at 2026-08-07T06:11:23+00:00
archive: do not seek to negative absolute position

- - - - -


1 changed file:

- modules/stream_extractor/archive.c


Changes:

=====================================
modules/stream_extractor/archive.c
=====================================
@@ -174,7 +174,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/6cccb39fd6083518429056a20fa67113073dc49d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6cccb39fd6083518429056a20fa67113073dc49d
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