git-annex/Remote/Helper
Joey Hess cd544e548b
filter out control characters in error messages
giveup changed to filter out control characters. (It is too low level to
make it use StringContainingQuotedPath.)

error still does not, but it should only be used for internal errors,
where the message is not attacker-controlled.

Changed a lot of existing error to giveup when it is not strictly an
internal error.

Of course, other exceptions can still be thrown, either by code in
git-annex, or a library, that include some attacker-controlled value.
This does not guard against those.

Sponsored-by: Noam Kremen on Patreon
2023-04-10 13:50:51 -04:00
..
Chunked incremental checksum on download from ssh or p2p 2021-02-09 17:03:27 -04:00
AWS.hs correct obsolete comment 2023-01-31 14:42:26 -04:00
Chunked.hs Fix ambigous typos 2023-03-17 15:14:47 -04:00
Encryptable.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
ExportImport.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Git.hs Windows: Support long filenames in more (possibly all) of the code 2023-03-01 15:55:58 -04:00
Hooks.hs plumb VerifyConfig into retrieveKeyFile 2021-08-17 12:43:13 -04:00
Http.hs git-lfs gitlab interoperability fix 2021-11-10 13:51:11 -04:00
Messages.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
P2P.hs remove git-annex-shell compat code 2021-10-11 15:36:51 -04:00
ReadOnly.hs convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
Special.hs incremental verification for retrieval from all export remotes 2022-05-09 13:49:33 -04:00
Ssh.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
ThirdPartyPopulated.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00