Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
dbd22036 by Steve Lhomme at 2025-12-11T18:41:18+00:00
access: http: fix status string size warning

The asserts checks that the status is below 1000 but if it's bigger
in a release build we should not limit the buffer size.

- - - - -


1 changed file:

- modules/access/http/message.c


Changes:

=====================================
modules/access/http/message.c
=====================================
@@ -442,7 +442,7 @@ struct vlc_h2_frame *vlc_http_msg_h2_frame(const struct 
vlc_http_msg *m,
 
     if (m->status >= 0)
     {
-        assert(m->status < 1000);
+        if (m->status >= 1000) vlc_assert_unreachable();
         snprintf(status, ARRAY_SIZE(status), "%hd", m->status);
         headers[i][0] = ":status";
         headers[i][1] = status;



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

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/dbd22036b067f7a161e2e19810e26a70784bc810
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to