Searched hist:"229 d0cfae5b21bfc42525cf43b0b4279243acc4e" (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/scripts/kconfig/ |
H A D | lkc_proto.h | diff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()
sym_escape_string_value() returns a malloc'ed memory, but as (const char *). So, it must be casted to (void *) when it is free'd. This is odd.
The return type of sym_escape_string_value() should be (char *).
I exploited that free(NULL) has no effect.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|
H A D | symbol.c | diff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()
sym_escape_string_value() returns a malloc'ed memory, but as (const char *). So, it must be casted to (void *) when it is free'd. This is odd.
The return type of sym_escape_string_value() should be (char *).
I exploited that free(NULL) has no effect.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|
H A D | conf.c | diff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()
sym_escape_string_value() returns a malloc'ed memory, but as (const char *). So, it must be casted to (void *) when it is free'd. This is odd.
The return type of sym_escape_string_value() should be (char *).
I exploited that free(NULL) has no effect.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|
H A D | confdata.c | diff 229d0cfae5b21bfc42525cf43b0b4279243acc4e Fri Oct 01 00:32:44 CDT 2021 Masahiro Yamada <masahiroy@kernel.org> kconfig: remove 'const' from the return type of sym_escape_string_value()
sym_escape_string_value() returns a malloc'ed memory, but as (const char *). So, it must be casted to (void *) when it is free'd. This is odd.
The return type of sym_escape_string_value() should be (char *).
I exploited that free(NULL) has no effect.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
|