From: juntaka via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
"47718@debbugs.gnu.org" <47718@debbugs.gnu.org>
Subject: bug#47718: Fix epa-file-insert-file-contents substring error
Date: Mon, 12 Apr 2021 12:57:28 +0000 [thread overview]
Message-ID: <UArvNLTWAHefOkfWfLd9VXQuGrjZyFMR7kYtgHPRrinI7IBBygkeBaYjxr6r1fCB10QwkD_M3zy_tclowq1nv7sAy2G4CcYxfkbnw9sFhhk=@protonmail.com> (raw)
In-Reply-To: <83o8ej3ebk.fsf@gnu.org>
Hi Eli,
In my use case, I'm writing an elisp to show the first line of each file on dired.
It does not need to visit and read entire file. So I just try to limit by (window-width).
But if Emacs try to decrypt GPG files, then I got such error.
Regards,
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, April 12, 2021 8:57 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Lars Ingebrigtsen larsi@gnus.org
> > Date: Mon, 12 Apr 2021 10:14:34 +0200
> > Cc: 47718@debbugs.gnu.org
> > juntaka juntaka@protonmail.com writes:
> >
> > > I think substring occurs error when TO is longer than its content.
> > > This patch will fix the substring bug in epa-file-insert-file-contents.
> >
> > Thanks; applied to Emacs 28.
>
> Actually, I wonder whether this is TRT: why should we silently accept
> invalid inputs when substring itself doesn't?
>
> IOW, can we please have a real-life use case where this happens, and
> where silently "fixing" this input is TRT? TIA.
next prev parent reply other threads:[~2021-04-12 12:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 4:20 bug#47718: Fix epa-file-insert-file-contents substring error juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-12 8:14 ` Lars Ingebrigtsen
2021-04-12 11:57 ` Eli Zaretskii
2021-04-12 12:57 ` juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-04-12 13:23 ` Eli Zaretskii
2021-04-13 0:27 ` juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-13 7:01 ` Lars Ingebrigtsen
2021-04-12 12:51 ` juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-13 7:02 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='UArvNLTWAHefOkfWfLd9VXQuGrjZyFMR7kYtgHPRrinI7IBBygkeBaYjxr6r1fCB10QwkD_M3zy_tclowq1nv7sAy2G4CcYxfkbnw9sFhhk=@protonmail.com' \
--to=bug-gnu-emacs@gnu.org \
--cc=47718@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=juntaka@protonmail.com \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.