News for hackers. Stuff that matters.
Re:Tox: secure messaging for everyone by peterwwillis on Monday July 29, 2013 @12:26PM (#6122077)
tl;dr There is a buffer overflow in read_packet(). See below.

edit Shit, i'm wrong. I missed this line 599 of Lossless_UDP.c:

    if (size > MAX_DATA_SIZE)
        return 1;
That is the only section that verifies the size of the memory being copied, which is still dangerous. Every memcpy should enforce the size being no greater than the size of Data.data, and not rely on .size having been previously set properly.

There are no comments on this comment yet.