Opened 11 years ago

Closed 11 years ago

#5684 closed defect (fixed)

Make sure that answer.text is null terminated in cCiMMI::SendAnswer

Reported by: Erik Hovland <erik@…> Owned by: Isaac Richards
Priority: trivial Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

By adding a null terminator to the very end of answer.text, we guarantee that the string is terminated.

Attachments (1)

libs_libmythtv-buffer-size-check.patch (993 bytes) - added by Erik Hovland <erik@…> 11 years ago.
explicitly apply null terminator to answer.text

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by Erik Hovland <erik@…>

explicitly apply null terminator to answer.text

comment:1 Changed 11 years ago by danielk

Resolution: fixed
Status: newclosed

(In [19427]) Fixes #5684. Make sure c string is NULL terminated before calling strlen() on it...

Note: See TracTickets for help on using tickets.