[ros-dev] Re: [ros-diffs] [mf] 19776: sprintf_s1
Martin Fuchs
fuchs.martin at gmail.com
Wed Nov 30 18:56:14 CET 2005
Hi,
2005/11/30, Royce Mitchell III <royce3 at ev1.net>:
> mf at svn.reactos.com wrote:
>
> >- LPXSSTR buffer = (LPXSSTR)alloca(5*sizeof(XS_CHAR)*XS_len(s)); // worst case. "&"
> >
> >
> >+ LPXSSTR buffer = (LPXSSTR)alloca(6*sizeof(XS_CHAR)*XS_len(s)); // worst case """ / "'"
> >
> >
> http://www.notestips.com/80256B3A007F2692/1/NAMO5FTHEJ
>
> ±
> ε
Well, the EncodeXMLString() function only encodes a few special
characters, not the whole set of possible HTML names: &, <, >, " and '
So th worst case is in fact """ or "'".
Regards,
Martin
More information about the Ros-dev
mailing list