GitHub PushEvent at 2014-08-10 18:05:34
Repository: gocode
Actor: tiziano88
Payload: {"shas":[["c18cab30131b5c722d406501407319898edbefb5","5d0b7f0daad2ee752e931ed2a60b55f7d60f880d@google.com","Fix slice indexing in cursorcontext.\n\nFixes a corner case in which if the identifier is followed by a\nwhitespace and the cursor is on the whitespace, the code would try to\naccess a slice past its boundaries:\n\n```\npanic: runtime error: slice bounds out of range\n1(runtime.panic): /usr/lib/go/src/pkg/runtime/panic.c:248\n2(runtime.panicstring): /usr/lib/go/src/pkg/runtime/panic.c:482\n3(runtime.panicslice): /usr/lib/go/src/pkg/runtime/panic.c:439\n4(main.(*auto_complete_context).deduce_cursor_context):\n/home/tzn/src/go/src/github.com/nsf/gocode/cursorcontext.go:230\n5(main.(*auto_complete_context).apropos):\n/home/tzn/src/go/src/github.com/nsf/gocode/autocompletecontext.go:253\n6(main.server_auto_complete):\n/home/tzn/src/go/src/github.com/nsf/gocode/server.go:145\n7(main.(*RPC).RPC_auto_complete):\n/home/tzn/src/go/src/github.com/nsf/gocode/rpc.go:26\n8(runtime.call64): /usr/lib/go/src/pkg/runtime/asm_amd64.s:340\n9(reflect.Value.call): /usr/lib/go/src/pkg/reflect/value.go:474\n10(reflect.Value.Call): /usr/lib/go/src/pkg/reflect/value.go:345\n11(net/rpc.(*service).call): /usr/lib/go/src/pkg/net/rpc/server.go:381\n12(runtime.goexit): /usr/lib/go/src/pkg/runtime/proc.c:1394\n```","Tiziano Santoro",true]],"size":1,"ref":"refs/heads/cursor_overrun","head":"c18cab30131b5c722d406501407319898edbefb5"}