[bind10-dev] arbitrary character and plain char
Michal 'vorner' Vaner
michal.vaner at nic.cz
Wed May 9 07:33:45 UTC 2012
Hello
On Mon, May 07, 2012 at 06:17:43PM -0700, JINMEI Tatuya / 神明達哉 wrote:
> Now I don't understand why you don't think it will work...could you be
> more specific about how exactly it will fail?
Are we talking about char in the lexer or char in the Name object?
If the lexer, then the problem really is high-bits in the input text. If the
later, we just copy the data into the memory area occupied by the Name buffer
and don't interpret them. However, in case we have \255, we need to convert it
and then we would be doing effectively this:
char c = atoi("255");
and then put the c into the Name object. This is where it may break.
Therefore I think if we want to be 100% sure and correct, we need to have
unsigned chars in Name objects even because of the \255 sequence.
With regard
--
Let me show you my collection of bugs.
Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20120509/d3d2c7bf/attachment.bin>
More information about the bind10-dev
mailing list