Modify

Ticket #5684 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

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

Reported by: Erik Hovland <erik@…> Owned by: ijr
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

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

Change History

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

explicitly apply null terminator to answer.text

comment:1 Changed 3 years ago by danielk

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

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

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.