[Live-devel] Handle carriage return/line feed in base64Decode
Ross Finlayson
finlayson at live555.com
Sun Jun 30 01:13:06 PDT 2013
On Jun 23, 2013, at 4:37 PM, Ross Finlayson <finlayson at live555.com> wrote:
>> I recently came across a client who sends our LIVE555 based RTSP server an HTTP message with a base64 encoded RTSP command that contains CR/LF. It seems fairly standard for a base64 decoder to support CR/LF, at least on 4 char boundaries, so I wrote up a patch to base64Decode to allow this. Then I discovered how the fragmented base64 message reading is implemented in RTSPServer and determined that the fix would not be so simple.
>
> Rather than put CR/LF (or other whitespace) removal inside the Base-64 decoding routine, we can just add a whitespace-removing pass to the "RTSPServer" code, before we call "base64Decode()". I'll add this change to the next release of the code.
FYI, the latest version (2013.06.30) of the code includes this change. I hope it works OK for you.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130630/a5e84efb/attachment.html>
More information about the live-devel
mailing list