[vlc-commits] sdp: fix multiple consecutive reads

Rémi Denis-Courmont git at videolan.org
Sun Dec 10 14:42:11 CET 2017


vlc/vlc-3.0 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 10 15:41:36 2017 +0200| [dbb35a82fb4ac142e0968db36b7afab88b3521bf] | committer: Rémi Denis-Courmont

sdp: fix multiple consecutive reads

(cherry picked from commit 7f981398befbf10eae0a99a63031219ced8d6dcd)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=dbb35a82fb4ac142e0968db36b7afab88b3521bf
---

 modules/access/sdp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/sdp.c b/modules/access/sdp.c
index a36c618e2e..4442cfefed 100644
--- a/modules/access/sdp.c
+++ b/modules/access/sdp.c
@@ -83,6 +83,7 @@ static ssize_t Read (stream_t *access, void *buf, size_t len)
     if (len > sys->length - sys->offset)
         len = sys->length - sys->offset;
     memcpy (buf, sys->data + sys->offset, len);
+    sys->offset += len;
     return len;
 }
 



More information about the vlc-commits mailing list