Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[systemd] fix use-after-free in control_service() #5

Merged

Conversation

peat-psuwit
Copy link
Contributor

According to [1], res points into rsp, a DBusMessage, so it must not be
read after rsp is un-referenced.

[1] https://dbus.freedesktop.org/doc/api/html/group__DBusMessage.html#gad8953f53ceea7de81cde792e3edd0230

According to [1], res points into rsp, a DBusMessage, so it must not be
read after rsp is un-referenced.

[1] https://dbus.freedesktop.org/doc/api/html/group__DBusMessage.html#gad8953f53ceea7de81cde792e3edd0230
Copy link
Contributor

@spiiroin spiiroin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well explained patch, thanks for noticing this!

@spiiroin spiiroin merged commit ce0559e into sailfishos:master Feb 18, 2022
@spiiroin
Copy link
Contributor

Included in usb-moded 0.86.0+mer58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants