* jcf-parse.c (java_parse_file): Ignore ZIPEMPTYMAGIC files.
* zipfile.h (ZIPEMPTYMAGIC): New define.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129860
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-11-02 Tom Tromey <tromey@redhat.com>
+
+ PR java/33765:
+ * jcf-parse.c (java_parse_file): Ignore ZIPEMPTYMAGIC files.
+ * zipfile.h (ZIPEMPTYMAGIC): New define.
+
2007-11-01 Tom Tromey <tromey@redhat.com>
* Make-lang.in (java/jcf-dump.o): Depend on zipfile.h.
2007-11-01 Tom Tromey <tromey@redhat.com>
* Make-lang.in (java/jcf-dump.o): Depend on zipfile.h.
#endif
parse_zip_file_entries ();
}
#endif
parse_zip_file_entries ();
}
+ else if (magic == (JCF_u4) ZIPEMPTYMAGIC)
+ {
+ /* Ignore an empty input jar. */
+ }
else
{
gcc_unreachable ();
else
{
gcc_unreachable ();
#define ZIPDIR_NEXT(ZIPD) \
((ZipDirectory*)((char*)(ZIPD)+(ZIPD)->direntry_size))
#define ZIPMAGIC 0x504b0304
#define ZIPDIR_NEXT(ZIPD) \
((ZipDirectory*)((char*)(ZIPD)+(ZIPD)->direntry_size))
#define ZIPMAGIC 0x504b0304
+#define ZIPEMPTYMAGIC 0x504b0506
extern ZipFile * opendir_in_zip (const char *, int);
extern int read_zip_archive (ZipFile *);
extern ZipFile * opendir_in_zip (const char *, int);
extern int read_zip_archive (ZipFile *);