]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix out of bounds access
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Dec 2016 00:27:33 +0000 (00:27 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 26 Dec 2016 00:27:33 +0000 (00:27 +0000)
src/libutil/str_util.c

index 7b65f53a79d479a1c3e699acd451d6385e69d8b8..3b3dc06b700b2bc16f9fda18e424c2253777de45 100644 (file)
@@ -1936,6 +1936,7 @@ decode:
                                        if (G_LIKELY (*p == '=')) {
                                                p ++;
                                                /* Skip comparison, as we know that we have found match */
+                                               remain --;
                                                goto decode;
                                        }
                                        else {