On 03/21/2013 11:08 PM, Jan Stancek wrote:
>   char *cuts_info[5];
>   ...
>   while (tok_num < 5 &&
>       (cuts_info[++tok_num] = strtok(NULL, "\t ")) != NULL) ;
> 
> While above can run for tok_num == 4, in which case:
>   cuts_info[++tok_num] becomes cuts_info[5]
> and that is outside of cuts_info array.
> 
> Signed-off-by: Jan Stancek <[email protected]>


Applied, thank you.

Wanlong Gao


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to