Opened 15 years ago
Closed 15 years ago
#6588 closed patch (fixed)
frontend segfault if QUERY_LOAD or QUERY_MEMSTATS fail
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | 0.22 |
Component: | MythTV - General | Version: | head |
Severity: | medium | Keywords: | remoteutil.cpp |
Cc: | Ticket locked: | no |
Description
If QUERY_LOAD or QUERY_MEMSTATS fail for some reason, backend sends an error message (a single element stringlist) in response.
Frontend assumes that it always receives a multi-element stringlist, resulting in segfault. This patch adds checks strlist.count() before parsing.
Attachments (1)
Change History (3)
Changed 15 years ago by
Attachment: | remoteutil.patch added |
---|
comment:1 Changed 15 years ago by
Milestone: | unknown → 0.22 |
---|---|
Owner: | changed from Isaac Richards to stuartm |
Status: | new → accepted |
comment:2 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note: See
TracTickets for help on using
tickets.
(In [21513]) Prevent a frontend segfault if certain protocol queries fail and return unexpected results. This does things a little differently from the supplied patch from Jeff Lu by creating a common error response which SendReceiveStringlist?() will look for and handle accordingly. Closes #6588