]> git.cworth.org Git - apitrace/commit
Avoid walking off array if given a negative value for array size.
authorCarl Worth <cworth@cworth.org>
Mon, 4 Jun 2012 21:47:33 +0000 (14:47 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Mon, 11 Jun 2012 15:40:00 +0000 (16:40 +0100)
commit614174444ce27a22f25e08a50cca3af5d3d07bae
tree93d91c72df60b648ac15fb3f82bed7acad20f647
parent8ac8b6bbcfa45d33ccbfd0cb23a92448d00b1b59
Avoid walking off array if given a negative value for array size.

Obviously, a negative size is bogus, but we want apitrace to be robust
enough to capture even bogus usage of the API, (so that the user can
investigate and fix the bogosity in the application).

In this case, if the user specifies a negative size for an array,
simply don't write anything out for the array content.

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
wrappers/trace.py