Eric Pouech : dbghelp: Fix erroneous string manipulation when said string is empty.
Module: wine Branch: master Commit: e05bac0fd56ea8cec0ba8f952197bdfbbbfb2e1a URL: https://source.winehq.org/git/wine.git/?a=commit;h=e05bac0fd56ea8cec0ba8f952... Author: Eric Pouech <eric.pouech(a)gmail.com> Date: Thu Sep 2 11:23:02 2021 +0200 dbghelp: Fix erroneous string manipulation when said string is empty. Signed-off-by: Eric Pouech <eric.pouech(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dbghelp/dwarf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c index 0479f7c7401..6b4eb90c05a 100644 --- a/dlls/dbghelp/dwarf.c +++ b/dlls/dbghelp/dwarf.c @@ -2198,7 +2198,7 @@ static BOOL dwarf2_parse_line_numbers(const dwarf2_section_t* sections, traverse.data += rellen + 1; p = vector_add(&dirs, &ctx->pool); - if (*rel == '/' || !compile_dir) + if (*rel == '/' || !compile_dir || !*compile_dir) *p = rel; else {
participants (1)
-
Alexandre Julliard