[vlc-devel] [PATCH 2/5] stream_ReadLine: log error when failing on line too long

Pierre Ynard linkfanel at yahoo.fr
Sun Sep 6 04:38:52 CEST 2020


Candidate for backporting to 3.0 if we can't find a fix for #24957


diff --git a/src/input/stream.c b/src/input/stream.c
index 35c5a04..a7973b9 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -318,7 +318,10 @@ char *vlc_stream_ReadLine( stream_t *s )
         i_read += i_data;
 
         if( i_read >= STREAM_LINE_MAX )
-            goto error; /* line too long */
+        {
+            msg_Err( s, "line too long, returning EOF instead" );
+            goto error;
+        }
     }
 
     if( i_read > 0 )
-- 
Pierre Ynard
"Une âme dans un corps, c'est comme un dessin sur une feuille de papier."


More information about the vlc-devel mailing list