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

dbus.c: Handle invalid bus names #2763

Merged
merged 1 commit into from
May 22, 2019

Conversation

psychon
Copy link
Member

@psychon psychon commented May 5, 2019

This makes the following code produce a Lua error instead of crashing
AwesomeWM:

dbus.emit_signal("foobar", "/", "org.awesome.SomeInterface", "method",
"s", "string argument")

The crash looked like this:

dbus[710]: arguments to dbus_connection_send() were incorrect, assertion
"connection != NULL" failed in file dbus/dbus-connection.c line 3307.
This is normally a bug in some application using the D-Bus library.

Signed-off-by: Uli Schlachter [email protected]

This makes the following code produce a Lua error instead of crashing
AwesomeWM:

  dbus.emit_signal("foobar", "/", "org.awesome.SomeInterface", "method",
      "s", "string argument")

The crash looked like this:

  dbus[710]: arguments to dbus_connection_send() were incorrect, assertion
      "connection != NULL" failed in file dbus/dbus-connection.c line 3307.
  This is normally a bug in some application using the D-Bus library.

Signed-off-by: Uli Schlachter <[email protected]>
@codecov
Copy link

codecov bot commented May 5, 2019

Codecov Report

Merging #2763 into master will decrease coverage by <.01%.
The diff coverage is 28.57%.

@@            Coverage Diff             @@
##           master    #2763      +/-   ##
==========================================
- Coverage   86.21%   86.21%   -0.01%     
==========================================
  Files         541      541              
  Lines       36953    36955       +2     
==========================================
+ Hits        31859    31860       +1     
- Misses       5094     5095       +1
Flag Coverage Δ
#gcov 74.98% <28.57%> (-0.02%) ⬇️
#luacov 89.14% <ø> (ø) ⬆️
Impacted Files Coverage Δ
dbus.c 40.24% <28.57%> (-0.25%) ⬇️
tests/test-selection-transfer.lua 99.19% <0%> (+0.8%) ⬆️

Copy link
Member

@Elv13 Elv13 left a comment

Choose a reason for hiding this comment

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

thanks

@blueyed blueyed merged commit a92adb8 into awesomeWM:master May 22, 2019
@psychon psychon deleted the legacy_dbus_invalid_connection branch May 22, 2019 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants