1. Stefan Saasen
  2. git


Hunter, D. Seth  committed c8400d9

http-push: fix xml_entities() string parsing overrun

xml_entities() in http-push.c did not properly stop at the end of the
string being examined, which would occasionally cause nonsense to be
appended to escaped URL strings and result in failed DAV XML queries

Signed-off-by: Seth Hunter <hunter@ll.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits 606475f
  • Branches master

Comments (0)

Files changed (1)

File http-push.c

View file
  • Ignore whitespace
 		case '&':
 			strbuf_addstr(&buf, "&amp;");
+		case 0:
+			return strbuf_detach(&buf, NULL);