chiark / gitweb /
memfd: skip utf-8 escaping if we use a name that was passed in
authorDaniel Mack <zonque@gmail.com>
Tue, 19 Aug 2014 20:08:54 +0000 (22:08 +0200)
committerDaniel Mack <zonque@gmail.com>
Tue, 19 Aug 2014 20:08:54 +0000 (22:08 +0200)
commitea47ff669723739e62a9bce6599b0346e464c08f
tree2c39232a76a045156f597c71b4ba9ad8f5b44499
parent3cd761e4df278cdef6fda9d7f50be512d3c1d7ae
memfd: skip utf-8 escaping if we use a name that was passed in

If a name was passed in as function argument, trust it, and don't do utf-8
encoding for them. Callers are obliged to check the names themselves, and
escape them in case they use anything they got from the outside world.
src/shared/memfd.c