]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: don't allocate n+1 elements in temporary array
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 16 Jul 2013 18:32:33 +0000 (20:32 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 16 Jul 2013 18:36:18 +0000 (20:36 +0200)
commit64b997250ae519d1da0c03d700218940662089a1
treee16cffe6b08d38c18db57ef46e96c757c0690f75
parentd8af6e66bfa82b7df8ee3868ee863b57ddd8e79f
kconfig: don't allocate n+1 elements in temporary array

The temporary array that stores the search results is not NULL-terminated,
so there is no reason to allocate n+1 elements.

Reported-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
scripts/kconfig/symbol.c