Page MenuHome GnuPG

Guldrelokk (Guldrelokk)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 17 2023, 6:01 PM (60 w, 3 d)
Availability
Available

Recent Activity

Apr 18 2023

Guldrelokk added a comment to T6455: Bug in regexp library may lead to out-of-bounds read.

Another miscellaneous correction for jimregexp. A condition was copy-pasted from another section without the necessary changes, resulting in incorrect logic. This seems harmless apart from inconsistent error reporting.

diff --git a/regexp/jimregexp.c b/regexp/jimregexp.c
index 1a8b8aae6..1b6e1b49c 100644
--- a/regexp/jimregexp.c
+++ b/regexp/jimregexp.c
@@ -778,7 +778,7 @@ static int regatom(regex_t *preg, int *flagp)
                                                        preg->err = REG_ERR_NULL_CHAR;
                                                        return 0;
                                                }
-                                               if (start == '\\' && *pattern == 0) {
+                                               if (end == '\\' && *pattern == 0) {
                                                        preg->err = REG_ERR_INVALID_ESCAPE;
                                                        return 0;
                                                }
Apr 18 2023, 12:24 PM · gnupg22 (gnupg-2.2.42), gnupg24 (gnupg-2.4.1), Bug Report
Guldrelokk created T6455: Bug in regexp library may lead to out-of-bounds read.
Apr 18 2023, 12:20 PM · gnupg22 (gnupg-2.2.42), gnupg24 (gnupg-2.4.1), Bug Report