[haiku-bugs] [Haiku] #9886: [Interface Kit] PrintJob.cpp: Use of memory after it is freed

  • From: "mt" <trac@xxxxxxxxxxxx>
  • Date: Sat, 20 Jul 2013 12:12:43 -0000

#9886: [Interface Kit] PrintJob.cpp: Use of memory after it is freed
--------------------------------+------------------------------
 Reporter:  mt                  |        Owner:  axeld
     Type:  bug                 |       Status:  new
 Priority:  normal              |    Milestone:  R1
Component:  Kits/Interface Kit  |      Version:  R1/Development
 Keywords:  BPrintJob           |   Blocked By:
 Blocking:                      |  Has a Patch:  0
 Platform:  All                 |
--------------------------------+------------------------------
 In BPrintJob::BeginJob(), variable "printer" is freed in line 244, but
 used in line 278 fSetupMessage->AddString(PSRV_FIELD_CURRENT_PRINTER,
 '''printer'''); . Please see attached report.

--
Ticket URL: <http://dev.haiku-os.org/ticket/9886>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: