Commit Diff
- Commit:
5a8b373cd01671285df647379299fbc5f49707c1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- fix parsing of tag objects which lack a tag message This problem could be triggered with the u-boot repository: $ git clone --bare https://gitlab.denx.de/u-boot/u-boot.git $ got log -r u-boot.git got-read-pack: bad object data got: bad object data $
- Actions:
- Patch | Tree
--- lib/object_parse.c +++ lib/object_parse.c @@ -925,7 +925,7 @@ got_object_parse_tag(struct got_tag_object **tag, uint } s += slen + 1; remain -= slen + 1; - if (remain <= 0) { + if (remain < 0) { err = got_error(GOT_ERR_BAD_OBJ_DATA); goto done; }