From: "Rustad, Mark D" <mark.d.rus...@intel.com>
Date: Thu, 2 Nov 2017 21:19:44 +0000

> 
>> On Nov 2, 2017, at 1:09 AM, Prashant Bhole <bhole_prashant...@lab.ntt.co.jp> 
>> wrote:
>> 
>> Use PATH_MAX instead of hardcoded array size 256
>> 
>> Signed-off-by: Prashant Bhole <bhole_prashant...@lab.ntt.co.jp>
 ...
>> static void get_asm_insns(uint8_t *image, size_t len, int opcodes)
>> {
>>      int count, i, pc = 0;
>> -    char tpath[256];
>> +    char tpath[PATH_MAX];
> 
> Seems like such a nice thing, *but* PATH_MAX is 4096. Can things really 
> tolerate 4k on the stack here?

This is userland code, why wouldn't it be able to handle 4K on the
stack?

Reply via email to