From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: juntaka@protonmail.com, 47718@debbugs.gnu.org
Subject: bug#47718: Fix epa-file-insert-file-contents substring error
Date: Mon, 12 Apr 2021 14:57:51 +0300 [thread overview]
Message-ID: <83o8ej3ebk.fsf@gnu.org> (raw)
In-Reply-To: <8735vv2a39.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 12 Apr 2021 10:14:34 +0200)
> 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 11: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 [this message]
2021-04-12 12:57 ` juntaka via Bug reports for GNU Emacs, the Swiss army knife of text editors
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83o8ej3ebk.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=47718@debbugs.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).