View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0000836 | luatex | luatex bug | public | 2013-06-14 13:08 | 2015-10-06 18:06 | 
| Reporter | eroux | Assigned To | luigi scarso | ||
| Priority | low | Severity | trivial | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Product Version | 0.74.0 | ||||
| Fixed in Version | 0.80.1 | ||||
| Summary | 0000836: Error handling in bad format file could be improved | ||||
| Description | The following patch improves error handling when there is a bug in the format. | ||||
| Tags | No tags attached. | ||||
|  |  texfileio.w.diff (803 bytes)   
 Index: tex/texfileio.w
===================================================================
--- tex/texfileio.w	(révision 4639)
+++ tex/texfileio.w	(copie de travail)
@@ -1114,8 +1114,14 @@
     if (nitems == 0)
         return;
     if (gzread(gz_fmtfile, (void *) p, (unsigned) (item_size * nitems)) <= 0) {
-        fprintf(stderr, "Could not undump %d %d-byte item(s): %s.\n",
+        if (gzeof(gz_fmtfile)) {
+          fprintf(stderr, "Could not undump %d %d-byte item(s): End of file reached.\n",
+                nitems, item_size);
+        }
+        else {
+          fprintf(stderr, "Could not undump %d %d-byte item(s): %s.\n",
                 nitems, item_size, gzerror(gz_fmtfile, &err));
+        }
         uexit(1);
     }
 #if !defined (WORDS_BIGENDIAN) && !defined (NO_DUMP_SHARE)
 | 
|  | we now have a verison number in the format | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2013-06-14 13:08 | eroux | New Issue | |
| 2013-06-14 13:08 | eroux | File Added: texfileio.w.diff | |
| 2015-03-21 14:19 | Hans Hagen | Assigned To | => luigi scarso | 
| 2015-03-21 14:19 | Hans Hagen | Status | new => assigned | 
| 2015-10-06 18:06 | Hans Hagen | Note Added: 0001419 | |
| 2015-10-06 18:06 | Hans Hagen | Status | assigned => closed | 
| 2015-10-06 18:06 | Hans Hagen | Resolution | open => fixed | 
| 2015-10-06 18:06 | Hans Hagen | Fixed in Version | => 0.80.1 | 
