shithub: c9

Download patch

ref: 589af8c97a72e459761d9dce0e7c826191b086c2
parent: bf1cebabe1e69aafd9be5d68f40f65e1d537bae6
author: Sergey Rogachev <[email protected]>
date: Tue Oct 2 06:26:45 EDT 2018

fix incorrect Tcreate parsing

Without this commit s9proc places
parts of the filename to t.create.perm
and t.create.mode.

--- a/c9.c
+++ b/c9.c
@@ -1074,6 +1074,7 @@
 		if((cnt = r16(&b)) < 1 || cnt > sz-4-2-4-1)
 			goto error;
 		t.create.name = (char*)b;
+		b += cnt;
 		t.create.perm = r32(&b);
 		t.create.mode = r08(&b);
 		t.create.name[cnt] = 0;