Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1798 closed Bug (fixed)

TM crashes when receiving malformed JSON packet

Reported by: KyleK Owned by: charles
Priority: Normal Milestone: 1.50
Component: libtransmission Version: 1.42
Severity: Major Keywords:
Cc:

Description

I was sending a JSON packet of this format to Transmission:

{"
  "method": "torrent-add",
  "arguments": {
    "metainfo": "<metainfo>"
    "paused": 1
  }
}

Notice the missing comma after the metainfo value.

When adding the comma, everything is fine.

Unfortunately I couldn't pinpoint the correct spot where it crashed, due to gdb currently not working on my NAS.

Let me know if you need more info.

Attachments (2)

1798-log.txt (2.1 KB) - added by charles 13 years ago.
backtrace of the crash
valgrind.log (8.2 KB) - added by charles 13 years ago.
valgrind logs the error

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by charles

backtrace of the crash

comment:1 Changed 13 years ago by charles

  • Milestone changed from None Set to 1.50
  • Status changed from new to assigned

Changed 13 years ago by charles

valgrind logs the error

comment:2 Changed 13 years ago by charles

fixed in trunk in r7853.

comment:3 Changed 13 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in 1.5x in r7855.

comment:4 Changed 13 years ago by charles

  • Severity changed from Normal to Major
Note: See TracTickets for help on using tickets.