From eec5d27f8c3fced0d6ef1c9bade48a1a1549c754 Mon Sep 17 00:00:00 2001 From: "Victor M. Alvarez" Date: Wed, 19 Jun 2024 11:22:21 +0200 Subject: [PATCH] Fix wrong identifier --- libyara/modules/pe/pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libyara/modules/pe/pe.c b/libyara/modules/pe/pe.c index 51f937660f..4d6998e446 100644 --- a/libyara/modules/pe/pe.c +++ b/libyara/modules/pe/pe.c @@ -369,7 +369,7 @@ static void pe_parse_debug_directory(PE* pe) pdb_path_len = strnlen( pdb_path, yr_min(available_space(pe, pdb_path), YR_MAX_PATH)); - if (pdb_path_len >= 0 && pdb_path_len < YR_PATH_MAX) + if (pdb_path_len >= 0 && pdb_path_len < YR_MAX_PATH) { yr_set_sized_string(pdb_path, pdb_path_len, pe->object, "pdb_path"); break;