[Asterisk-Dev] [RFC] strncpy -> ast_copy_string
Jeffrey C. Ollie
jeff at ocjtech.us
Mon May 2 18:13:35 MST 2005
On Mon, 2005-05-02 at 16:46 -0700, Luigi Rizzo wrote:
>
> i am fine with that, but i am unhappy about the mixture, in the code,
> of symbolic constants and magic numbers for apparently similar fields.
>
> If you support variable size strings you pretty much know that
> truncations may only occur when you put strings into protocol messages;
> with the current approach they might happen somewhere in the
> middle of the chain, and it may be hard to tell where.
This probably has to do with the fact that Asterisk is an active project
with a lot of contributors. You're right that this could lead to
problems. Someone with some interest needs to sit down with the code
and come up with a patch. (hint, hint)
Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-dev/attachments/20050502/6c1c0bba/attachment.pgp
More information about the asterisk-dev
mailing list