image_filter enhancement

Marcus Clyne ngx.eugaia at
Wed Dec 5 16:54:00 UTC 2012


El 05/12/12 11:52, Maxim Dounin escribió:
> Please also see other point rightfully noted by Ruslan Khusnullin - 
> you can't use ngx_strcmp() in ngx_http_image_filter_get_value() as 
> it's used not only on null-terminated strings. 
If you check there's enough space to avoid buffer overruns, you could 
use the ngx_str[n]cmp() macros to save on function calls.


More information about the nginx-devel mailing list