libweston: Make module loading safe against long paths

Graphics / Wayland / Weston - Daniel Stone [collabora.com] - 30 November 2016 04:27 UTC

Avoid any buffer overflows here by checking we don't go over PATH_MAX with stupid module names.

beb97e5 libweston: Make module loading safe against long paths
compositor/main.c | 15 ++++++++++++---
libweston/compositor.c | 15 ++++++++++++---
2 files changed, 24 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share