Displaying 2 results from an estimated 2 matches for "parse_next_entry".
2012 Feb 29
1
[PATCH 1/2] Check that directory path is not too long (found by Coverity).
From: "Richard W.M. Jones" <rjones at redhat.com>
Since we copy dirname + "/" + path to a fixed buffer of size PATH_MAX,
we need to check that the buffer cannot overflow.
---
helper/appliance.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/helper/appliance.c b/helper/appliance.c
index c4d0b32..05ad3e5 100644
---
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...time;
-static int dev_major, dev_minor, rdev_major, rdev_minor;
-static loff_t curr, next_header;
-#ifdef HAVE_ZLIB
-static gzFile gzfp;
-#else
-static FILE *fp;
-#endif
-static const char *input_file;
-
-static int xread (void *buffer, size_t size);
-static void parse_header (char *s);
-static int parse_next_entry (void);
-static void skip_to_next_header (void);
-static void read_file (void);
-static char *read_whole_body (void);
-static ext2_ino_t maybe_link (void);
-static void add_link (ext2_ino_t real_ino);
-static void clear_links (void);
-
-void
-ext2_cpio_file (const char *cpio_file)
-{
- /* Save thi...