Mesa (master): intel/error2aub: strenghten batchbuffer identifier marker
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Mar 8 11:03:26 UTC 2019
Module: Mesa
Branch: master
Commit: c0ea043888c1440c6f6f30d616ef5d2bf45bef46
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0ea043888c1440c6f6f30d616ef5d2bf45bef46
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Tue Sep 4 13:36:11 2018 +0100
intel/error2aub: strenghten batchbuffer identifier marker
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>
Reviewed-by: Rafael Antognolli <rafael.antognolli 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 5fa089065f2..8da484b3702 100644
--- a/src/intel/tools/error2aub.c
+++ b/src/intel/tools/error2aub.c
@@ -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);
More information about the mesa-commit
mailing list