Re: [PATCH weston] libweston: Make module loading safe against long paths

2016-11-29 Thread Peter Hutterer
On Tue, Nov 29, 2016 at 10:18:30AM +, Daniel Stone wrote: > Avoid any buffer overflows here by checking we don't go over PATH_MAX > with stupid module names. > > Signed-off-by: Daniel Stone Reviewed-by: Peter Hutterer Cheers, Peter > --- > compositor/main.c | 15 --- >

[PATCH weston] libweston: Make module loading safe against long paths

2016-11-29 Thread Daniel Stone
Avoid any buffer overflows here by checking we don't go over PATH_MAX with stupid module names. Signed-off-by: Daniel Stone --- compositor/main.c | 15 --- libweston/compositor.c | 15 --- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/compositor/mai