[Forensics-changes] [yara] 232/407: Avoid hitting a bug in lldb-320.4.152

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.3.0
in repository yara.

commit 7cc63b166cd5b4397dfc568bba8da40b4180fd27
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Nov 27 12:37:33 2014 +0100

    Avoid hitting a bug in lldb-320.4.152
    
    https://twitter.com/plusvic/status/537931191799013376
---
 yara.c  | 3 ++-
 yarac.c | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/yara.c b/yara.c
index 4cf9439..75a6a5c 100644
--- a/yara.c
+++ b/yara.c
@@ -680,8 +680,9 @@ int is_numeric(
 {
   while(*str)
   {
-    if(!isdigit(*str++))
+    if (!isdigit(*str))
       return 0;
+    str++;
   }
 
   return 1;
diff --git a/yarac.c b/yarac.c
index e0eb000..ab92b22 100644
--- a/yarac.c
+++ b/yarac.c
@@ -75,8 +75,9 @@ int is_numeric(
 {
   while(*str)
   {
-    if(!isdigit(*str++))
+    if (!isdigit(*str))
       return 0;
+    str++;
   }
 
   return 1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list