• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ppplib.c - bugs and a crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ppplib.c - bugs and a crash


  • Subject: ppplib.c - bugs and a crash
  • From: Jens Bauer <email@hidden>
  • Date: Wed, 3 Apr 2002 11:26:27 +0200

Hi all

(radar #2892381)

I've reported 2 problems in the ppplib.c, which are:

1: a minor memory leak
2: a crash

To fix these, go to line 119 and replace this sequence:

if(read(ref, &data, msg.m_len) != msg.m_len) // read data
return errno;

by:

if(read(ref, data, msg.m_len) != msg.m_len) // read data (read to
correct location)
{
free(data); // (reduce memory leak)
return errno;
}


Love,
Jens

--
Jens Bauer, Faster Software.
-Let's make the World better, shall we ?
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: ppplib.c - bugs and a crash (update)
      • From: Jens Bauer <email@hidden>
  • Prev by Date: underlying bsd printing system
  • Next by Date: Re: ppplib.c - bugs and a crash (update)
  • Previous by thread: underlying bsd printing system
  • Next by thread: Re: ppplib.c - bugs and a crash (update)
  • Index(es):
    • Date
    • Thread