Skip to content

examples: bump smolrtsp-libevent pin to include the 400-on-parse-failure fix - #60

Merged
widgetii merged 1 commit into
OpenIPC:masterfrom
widgetii:bump-libevent-400
Jul 22, 2026
Merged

widgetii merged 1 commit into
OpenIPC:masterfrom
widgetii:bump-libevent-400

Conversation

@widgetii

Copy link
Copy Markdown
Member

Summary

Bumps the smolrtsp-libevent pin in examples/CMakeLists.txt from 369b1a3 to b0329b4 (current main), pulling in:

The old pin predates the interleaved-frame API (smolrtsp_parse_interleaved_frame / SmolRTSP_InterleavedFrameStatus, in smolrtsp/util.h) that the current integration relies on, so the example no longer built against it.

Verification

Built the example against this branch (smolrtsp master) + the bumped libevent and exercised it live:

Request Response
valid OPTIONS RTSP/1.0 200 OK
bad CSeq (non-numeric) RTSP/1.0 400 Bad Request
missing CSeq RTSP/1.0 400 Bad Request
oversized header (1100 B > cap) RTSP/1.0 400 Bad Request
garbage request line RTSP/1.0 400 Bad Request

Previously the malformed/oversized cases were silently dropped (the client hung until timeout). ASan clean throughout.

Context

Completes the chain started by #59 (bounded RTSP parsing / alloca DoS fix): the parser reliably returns a parse Failure on bad input, and the integration now surfaces that as a proper 400.

🤖 Generated with Claude Code

Pull in the current smolrtsp-libevent `main`, which includes the
interleaved-frame dispatch refactor (smolrtsp-libevent#2) and the
`400 Bad Request` reply on parse failure (smolrtsp-libevent#3). The old
pin (369b1a3) predates the interleaved-frame API the current integration
relies on, so the example no longer built against it.

Verified: the example builds against smolrtsp master, and live a
malformed or oversized request now gets `RTSP/1.0 400 Bad Request`
instead of a silently dropped connection; valid requests still get 200.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@widgetii
widgetii merged commit 04ffa56 into OpenIPC:master Jul 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant