From: Mark Wooding Date: Wed, 18 May 2016 09:29:03 +0000 (+0100) Subject: base/dispatch.c: Stop parsing the auxiliary vector when we hit `AT_NULL'. X-Git-Tag: 2.2.3~1^2~21 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/dfcb2a0b93cf69157e502dca21b9b6cd0b1a0cbe?ds=inline base/dispatch.c: Stop parsing the auxiliary vector when we hit `AT_NULL'. This doesn't seem too dreadful so far (partly because nothing is using this machinery for something important, and partly because we're parsing the vector from a file with known length), but fix it anyway. --- diff --git a/base/dispatch.c b/base/dispatch.c index 1b0ab2b1..f5a25c8d 100644 --- a/base/dispatch.c +++ b/base/dispatch.c @@ -359,6 +359,7 @@ static void probe_hwcaps(void) #define CAP__SWITCH(type, ubranch, slot) \ case type: probed.slot = a->value.ubranch; break; WANTAUX(CAP__SWITCH) + case AT_NULL: goto clean; } }