bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #54236] Leftover extra chars after C1 control's tty sanitization


From: Egmont Koblinger
Subject: [bug #54236] Leftover extra chars after C1 control's tty sanitization
Date: Thu, 5 Jul 2018 07:35:36 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Follow-up Comment #3, bug #54236 (project findutils):

Sorry guys, I don't get what you're talking about, and I'm afraid you didn't
understand my bugreport.

Various quoting styles (as coreutils's "ls" has them) is only marginally
relevant, and I can't see any security implication there, it's primarly about
user convenience (as long as you don't emit ESC and similar characters).
There's nothing wrong in emitting "somewhat special" (but printable)
characters (such as space) unquoted.

My bugreport is about the handling of escape sequences, which control the
terminal emulator in various ways. And "find" already handles them specially,
since it replaces them by a "?" before printing to the terminal. So the intent
is correct. There's nothing to redesign here, at least not as part of this
issue.

This one is a mere off-by-one-ish bug, probably a memmove() not including the
terminating 0 byte, or something similar, resulting in some leftover garbage
at the end of the string. This one is simply an implementation error in
replacing the two-byte UTF-8 character by a "?".

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54236>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]