mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 06:59:28 +02:00
parsing.c: be prepared for unexpected content in commit/tag objects
When parsing commits and tags cgit made too many assumptions about the formatting of said objects. This patch tries to make the code be more prepared to handle 'malformed' objects. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
b28765135d
commit
a8305a9543
2 changed files with 97 additions and 64 deletions
2
cgit.h
2
cgit.h
|
@ -85,7 +85,7 @@ struct commitinfo {
|
|||
struct taginfo {
|
||||
char *tagger;
|
||||
char *tagger_email;
|
||||
int tagger_date;
|
||||
unsigned long tagger_date;
|
||||
char *msg;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue