diff options
| author | = <jakob@memeware.net> | 2017-05-13 14:54:43 -0400 |
|---|---|---|
| committer | = <jakob@memeware.net> | 2017-05-13 14:54:43 -0400 |
| commit | 1ec0be0143717f9d7af883269f7707dd0161f6ec (patch) | |
| tree | 21f4cd4901e2b237cd067b45cc62b4ebdf0f0d52 /src/table.h | |
| parent | 986a9e120d79f625cbd7b4c59ccfd479a6a149ec (diff) | |
Bounds checking when the table is written to disk to prevent serious memory leaks.
Diffstat (limited to 'src/table.h')
| -rw-r--r-- | src/table.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/table.h b/src/table.h index dd01fa3..53012f7 100644 --- a/src/table.h +++ b/src/table.h @@ -74,7 +74,8 @@ void entry_append(struct table_entry *root, struct table_entry *e); /* Frees every entry in the linked list specified by `cur`. */ void entry_free(struct table_entry *cur); -/* Dumps the XP3 table specified by `root` into `s`. */ +/* Dumps the XP3 table specified by `root` into `s` and returns the + number of bytes written. */ void dump_table(struct stream *s, struct table_entry *root); /* Inserts the file specified by `path` into the table linked list |