backend-drm: fix issues in libbacklight
1 unresolved thread
1 unresolved thread
Compare changes
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The migration is almost done, at least the rest should happen in the background. There are still a few technical difference between the old cluster and the new ones, and they are summarized in this issue. Please pay attention to the TL:DR at the end of the comment.
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.