aboutsummaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-12-08 20:39:02 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-08 20:39:02 +0100
commitbcb24af9265133a4d562c4b2ebbf5f54649639af (patch)
treece4e3caec76015304def9fa72b710272e530b0a8 /pdf
parentc0927c05dd71d99b6407513d7c519fb296461d36 (diff)
downloadpdf-simple-sign-bcb24af9265133a4d562c4b2ebbf5f54649639af.tar.gz
pdf-simple-sign-bcb24af9265133a4d562c4b2ebbf5f54649639af.tar.xz
pdf-simple-sign-bcb24af9265133a4d562c4b2ebbf5f54649639af.zip
Minor revision
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/pdf.go b/pdf/pdf.go
index 4f1f5e1..e004429 100644
--- a/pdf/pdf.go
+++ b/pdf/pdf.go
@@ -63,9 +63,9 @@ const (
Reference
)
-// Object is a PDF token/object thingy. Objects may be composed either from
+// Object is a PDF token/object thingy. Objects may be composed either from
// one or a sequence of tokens. The PDF Reference doesn't actually speak
-// of tokens.
+// of tokens, though ISO 32000-1:2008 does.
type Object struct {
Kind ObjectKind
@@ -722,7 +722,7 @@ func NewUpdater(document []byte) (*Updater, error) {
if !ok {
break
}
- // FIXME: We don't check for size_t over or underflow.
+ // FIXME: Do not read offsets and sizes as floating point numbers.
if !prevOffset.IsInteger() {
return nil, errors.New("invalid Prev offset")
}