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: wire format error: invalid value for boolean #377

Open
raas opened this issue Nov 29, 2023 · 0 comments
Open

dbus: wire format error: invalid value for boolean #377

raas opened this issue Nov 29, 2023 · 0 comments

Comments

@raas
Copy link

raas commented Nov 29, 2023

Hi,

I get the above after trying to EncodeTo() then DecodeMessage() on notification messages originating from Google Calendar or Telegram in Firefox -- messages that are fairly large and stuffed with... stuff in the hints field. Attached is a binary format of this (as produced by msg.EncodeTo(&b, binary.LittleEndian)).

broken-message.gz

Everything else I found so far works fine, even other messages that use the hints field. I could not create a reproducer with simple dbus-send.

Code I try to read the data with:

  b, err := os.ReadFile(os.Args[1])
  // 
  r := bytes.NewReader(b)
  msg, err := dbus.DecodeMessage(r)

  if err != nil {
    log.Fatalf("dbus.DecodeMessage: %v", err)
  }

Help? How can I debug this further? dbus itself and various notification daemons seem happy with the message.

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

No branches or pull requests

1 participant