Re: [Mesa-dev] [PATCH v3] gallium/tgsi: fix overflow in parse property

2017-01-11 Thread Marek Olšák
Pushed, thanks. Marek On Tue, Jan 10, 2017 at 9:56 AM, Li Qiang wrote: > In parse_identifier, it doesn't stop copying '*pcur' > untill encounter the NULL. As the 'ret' has a > fixed-size buffer, if the '*pcur' has a long string, > there will be a buffer overflow. This patch

[Mesa-dev] [PATCH v3] gallium/tgsi: fix overflow in parse property

2017-01-10 Thread Li Qiang
In parse_identifier, it doesn't stop copying '*pcur' untill encounter the NULL. As the 'ret' has a fixed-size buffer, if the '*pcur' has a long string, there will be a buffer overflow. This patch avoid this. Signed-off-by: Li Qiang --- src/gallium/auxiliary/tgsi/tgsi_text.c |