Package: suricata / 1.0.1-1squeeze1

0008-fix-NULL-indirection-while-parsing-dce-sigs-clang-fi.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From eb9adf8129f57a5a4722f04f41dcd28e77a4ed65 Mon Sep 17 00:00:00 2001
From: Anoop Saldanha <poonaatsoc@gmail.com>
Date: Thu, 29 Jul 2010 22:25:04 +0530
Subject: [PATCH 08/17] fix NULL indirection while parsing dce sigs - clang fix

---
 src/detect-distance.c |    2 +-
 src/detect-within.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/detect-distance.c b/src/detect-distance.c
index 2e3e37e..6b5cfb0 100644
--- a/src/detect-distance.c
+++ b/src/detect-distance.c
@@ -153,7 +153,7 @@ static int DetectDistanceSetup (DetectEngineCtx *de_ctx, Signature *s,
                                                     &s->pmatch, &s->pmatch_tail,
                                                     &s->dmatch, &s->dmatch_tail);
                 pm = pm1;
-            } else if (pm2_ots->idx > dcem->idx) {
+            } else {
                 /* within is against pm1, pm = pm1 */
                 pm = pm1;
             }
diff --git a/src/detect-within.c b/src/detect-within.c
index a4164cb..ec6b7d6 100644
--- a/src/detect-within.c
+++ b/src/detect-within.c
@@ -156,7 +156,7 @@ static int DetectWithinSetup (DetectEngineCtx *de_ctx, Signature *s, char *withi
                                                     &s->pmatch, &s->pmatch_tail,
                                                     &s->dmatch, &s->dmatch_tail);
                 pm = pm1;
-            } else if (pm2_ots->idx > dcem->idx) {
+            } else {
                 /* within is against pm1, pm = pm1 */
                 pm = pm1;
             }
-- 
1.7.2.3