[Bug 1385341] [NEW] Crashes when methods are called with wrong arguments

Launchpad Bug Tracker 1385341 at bugs.launchpad.net
Wed Aug 17 13:37:20 UTC 2016


You have been subscribed to a public bug:

A method that takes zero or more strings was being called with an empty
array instead, crashing inside AllArgs:

panic: Buffer too small

goroutine 37 [running]:
runtime.panic(0x6fafc0, 0xc210036880)
        /usr/lib/go/src/pkg/runtime/panic.c:266 +0xb6
launchpad.net/go-dbus/v1.(*Message).AllArgs(0xc2100eb840, 0x11, 0x7b4110, 0x11)
        /home/ralsina/canonical/ubuntu-push/src/launchpad.net/go-dbus/v1/message.go:217 +0x224
launchpad.net/ubuntu-push/bus.func·001()
        /home/ralsina/canonical/ubuntu-push/src/launchpad.net/ubuntu-push/bus/endpoint.go:266 +0x1a9
created by launchpad.net/ubuntu-push/bus.(*endpoint).WatchMethod
        /home/ralsina/canonical/ubuntu-push/src/launchpad.net/ubuntu-push/bus/endpoint.go:296 +0x105

goroutine 1 [select]:
launchpad.net/ubuntu-push/client.(*PushClient).doLoop(0xc21006a000, 0x7f9acc21de28, 0x7f9acc21de08, 0x7f9acc21de48, 0x7f9acc21de38, ...)
        /home/ralsina/canonical/ubuntu-push/src/launchpad.net/ubuntu-push/client/client.go:481 +0x35c
launchpad.net/ubuntu-push/client.(*PushClient).Loop(0xc21006a000)
        /home/ralsina/canonical/ubuntu-push/src/launchpad.net/ubuntu-push/client/client.go:519 +0x13d
main.main()
        /home/ralsina/canonical/ubuntu-push/src/launchpad.net/ubuntu-push/ubuntu-push-client.go:42 +0x36c

** Affects: go-dbus
     Importance: Undecided
         Status: Fix Released

** Affects: ubuntu-push (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Crashes when methods are called with wrong arguments
https://bugs.launchpad.net/bugs/1385341
You received this bug notification because you are a member of Ubuntu Phablet Team, which is subscribed to ubuntu-push in Ubuntu.



More information about the Ubuntu-reviews mailing list