Lukas,
Thanks for the detailed story.
I found in vCard 2.1 spec:
base64 = <MIME RFC 1521 base64 text>
; the end of the text is marked with two CRLF sequences
; this results in one blank line before the start of the next
I was thinking we can detect end of b64 string by two consecutive CRLFs,
What's the potential problem?
>For parsing, detection of the end of the B64 block requires lookahead
>because there is no guarantee the b64 string ends in a "=" (it does
>not when the input string is a integer multiple of 3 bytes). If we
>can't distinguish folding line ends from end-of-property line ends,
>the only solution is to parse ahead into the next line and check if
>there's a colon as a sign that the entire line does not belong to the
>B64 string.
Thanks,
Chen,Congwu
_______________________________________________
os-libsynthesis mailing list
[email protected]
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis