From dfcb2a0b93cf69157e502dca21b9b6cd0b1a0cbe Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 18 May 2016 10:29:03 +0100 Subject: [PATCH] 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. --- base/dispatch.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.11.0