Hi, Thank you for this patch. You are right, the '\0' is written outside the bounds of the buffer. I would suggest a minor modification to your patch, please see attachment.
Regards, Olivier On 05/01/2013 08:50 PM, Han, Dongsu wrote: > I'm sending a proposed patch to fix the buffer overrun problem in > handling log messages. > > Dongsu Han > > > _______________________________________________ > dev mailing list > dev at dpdk.org > http://dpdk.org/ml/listinfo/dev -- Olivier MATZ Tel +33-1-39-30-92-57 www.6wind.com ================================================================================ This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to 6WIND. All unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Ce courriel ainsi que toutes les pi?ces jointes, est uniquement destin? ? son ou ses destinataires. Il contient des informations confidentielles qui sont la propri?t? de 6WIND. Toute r?v?lation, distribution ou copie des informations qu'il contient est strictement interdite. Si vous avez re?u ce message par erreur, veuillez imm?diatement le signaler ? l'?metteur et d?truire toutes les donn?es re?ues ================================================================================ -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-eal-log-fix-memory-corruption.patch Type: text/x-patch Size: 1702 bytes Desc: not available URL: <http://dpdk.org/ml/archives/dev/attachments/20130502/bf49889a/attachment.bin>