[Mesa-dev] [PATCH 12/20] intel/error2aub: strenghten batchbuffer identifier marker

Lionel Landwerlin lionel.g.landwerlin at intel.com
Tue Sep 25 08:23:51 UTC 2018


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 at intel.com>
---
 src/intel/tools/error2aub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c
index ed11b35ffb1..ef8cd9dacf9 100644
--- a/src/intel/tools/error2aub.c
+++ b/src/intel/tools/error2aub.c
@@ -338,9 +338,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);
 
-- 
2.19.0



More information about the mesa-dev mailing list