Skip to content

Commit a6dfec7

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents e05c805 + c47d69c commit a6dfec7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pdfpasswd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
// Pdfpasswd searches for the password for an encrypted PDF
66
// by trying all strings over a given alphabet up to a given length.
7-
package main
7+
package main // import "rsc.io/pdf/pdfpasswd"
88

99
import (
1010
"flag"

read.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ func (r *Reader) resolve(parent objptr, x interface{}) Value {
766766
def, ok := obj.(objdef)
767767
if !ok {
768768
panic(fmt.Errorf("loading %v: found %T instead of objdef", ptr, obj))
769-
return Value{}
769+
//return Value{}
770770
}
771771
if def.ptr != ptr {
772772
panic(fmt.Errorf("loading %v: found %v", ptr, def.ptr))
@@ -1089,7 +1089,7 @@ func decryptStream(key []byte, useAES bool, ptr objptr, rd io.Reader) io.Reader
10891089
rd = &cbcReader{cbc: cbc, rd: rd, buf: make([]byte, 16)}
10901090
} else {
10911091
c, _ := rc4.NewCipher(key)
1092-
rd = &cipher.StreamReader{c, rd}
1092+
rd = &cipher.StreamReader{S: c, R: rd}
10931093
}
10941094
return rd
10951095
}

0 commit comments

Comments
 (0)