** `(fillarray string 0)' is not enough to clear passphrases
-If Emacs crashed and dumps core, passphrase strings in memory are also
+If Emacs crashes and dumps core, passphrase strings in memory are also
dumped within the core file. `read-passwd' function clears passphrase
strings by `(fillarray string 0)'. However, Emacs performs compaction
in gc_sweep phase. If GC happens before `fillarray', passphrase
(epg-context-set-armor context t)
(epg-context-set-textmode context pgg-text-mode)
(if signature
- (epg-verify-file context signature (buffer-substring start end) nil)
+ (epg-verify-string context
+ (with-temp-buffer
+ (insert-file-contents signature)
+ (buffer-string))
+ (buffer-substring start end))
(epg-verify-string context (buffer-substring start end)))
(setq signature (reverse (epg-context-result-for context 'verify))
pointer signature)