Skip to content

backend-drm: fix issues in libbacklight

xndcn requested to merge xndcn/weston:fix-backlight into main

The value of brightness node in backlight sys file may end with '\n', which is not accepted by safe_strtoint.

Another issue is that buffer pointer is damaged by the read call, so it will be dangerous to free it if the following asprintf fails.

Merge request reports