Re: [PATCH] Out of bounds array access in hooks.c
From: Philip Martin <philip_at_codematters.co.uk>
Date: 2007-12-11 17:41:20 CET
Karl Fogel <kfogel@red-bean.com> writes:
> Thanks, Daniel and David. That was my bad, I think. It passed all my
You could use this technique:
int i = 0;
args[i++] = ...;
assert(i == sizeof(args)/sizeof(args[0]));
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.