Skip to content
Snippets Groups Projects

backend-drm: fix issues in libbacklight

Closed xndcn requested to merge xndcn/weston:fix-backlight into main
1 unresolved thread

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
118 121 goto out;
119 122 }
120 123
124 buffer = NULL;
  • Sören Meier mentioned in merge request !818 (merged)

    mentioned in merge request !818 (merged)

  • closed

  • @soerenmeier I have forgotten the context about this commit since it was submited one year ago, so you are welcome to open a new MR.

  • Please register or sign in to reply
    Loading