shithub: pdffs

Download patch

ref: 33ddc6670424155fcdb359ddc6dc8b39e63f1c82
parent: e991b56693665c4f509c00f17d678d0e528271fa
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Sep 1 17:00:25 EDT 2020

pdfobj: return error right away when pdfdict fails

--- a/object.c
+++ b/object.c
@@ -47,8 +47,8 @@
 					return o;
 				}
 				Sseek(s, off, 0);
-				return o;
 			}
+			return o;
 		}
 		Sungetc(s);
 		/* fall through */