intel/error2aub: strenghten batchbuffer identifier marker
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 4 Sep 2018 12:36:11 +0000 (13:36 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 8 Mar 2019 11:01:14 +0000 (11:01 +0000)
Found out that some base64 data matched the '---' identifier. We can
avoid this by adding the surrounding spaces.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/intel/tools/error2aub.c

index 5fa089065f2960e7b6c377b1ee5b580de834f0ce..8da484b37021c7118764f25aef30449da34c7e33 100644 (file)
@@ -339,9 +339,9 @@ main(int argc, char *argv[])
          continue;
       }
 
-      char *dashes = strstr(line, "---");
+      char *dashes = strstr(line, " --- ");
       if (dashes) {
-         dashes += 4;
+         dashes += 5;
 
          engine_from_name(line, &active_engine_class, &active_engine_instance);