diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2014-07-04 18:26:09 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-04 20:33:29 +0100 |
commit | 8fa22964f69d3ec8700f177dd7cb3cbc396a9f35 (patch) | |
tree | 3be1162aee548261ba022560b0cfb625a5ff4b68 /test | |
parent | 6a64a3ae55ad5f743d2b7a4852b6ca7b54d2a142 (diff) |
backlight: Fix security issues in handling of the interface path name.
- don't allow '/' in the interface name to avoid escaping the /sys
hierarchy
- check snprintf() return value for overflow.
Problems reported by Adam Sampson. Thanks.
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
Reviewed-by: Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions