Opened 16 years ago
Closed 16 years ago
#5255 closed defect (fixed)
mythcontext.cpp, "index out of range" QList assert
Reported by: | Owned by: | Anduin Withers | |
---|---|---|---|
Priority: | minor | Milestone: | 0.21.1 |
Component: | mythtv | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Trunk 17144. At mythcontext.cpp line 3340, I'm getting an assert on the test:- if (strlist[0] == "REJECT"). The preceding socket->readStringList(strlist, true) can fail for a number of reasons, in which case strlist will be empty, hence the assert.
There's a backtrace at <http://www.graggrag.com/?q=node/7>.
Attachments (1)
Change History (4)
comment:1 Changed 16 years ago by
Milestone: | unknown → 0.21.1 |
---|---|
Owner: | changed from Isaac Richards to Anduin Withers |
Status: | new → assigned |
Version: | unknown → head |
comment:2 Changed 16 years ago by
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [18430]) Backport [17145] to -fixes. Check that readStringList() returns a valid result in MythContext::CheckProtoVersion?(). Closes #5255
Note: See
TracTickets for help on using
tickets.
(In [17145]) References #5255
In MythContext::CheckProtoVersion?(), ensure the QStringList obtained from MythSocket::readStringList() isn't empty.