Module: Mesa Branch: master Commit: c0ea043888c1440c6f6f30d616ef5d2bf45bef46 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0ea043888c1440c6f6f30d616ef5d2bf45bef46
Author: Lionel Landwerlin <[email protected]> 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 <[email protected]> Reviewed-by: Rafael Antognolli <[email protected]> --- 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); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
