kern/155658: [amr] [patch] amr_ioctl(): call of malloc() causes memory corruption and panic

Andreas Longwitz longwitz at incore.de
Tue Sep 13 09:50:09 UTC 2011


The following reply was made to PR kern/155658; it has been noted by GNATS.

From: Andreas Longwitz <longwitz at incore.de>
To: bug-followup at freebsd.org
Cc:  
Subject: Re: kern/155658: [amr] [patch] amr_ioctl(): call of malloc() causes
 memory corruption and panic
Date: Tue, 13 Sep 2011 11:43:46 +0200

 It is much better to modify the malloc in the patch in this way:
 
   malloc(max(au_length, MAX_AMR_IOCTL), M_AMR, M_WAITOK|M_ZERO))
 
 Thanks to Adran Chadd for this hint.
 
 
 -- 
 Dr. Andreas Longwitz
 
 Data Service GmbH
 Beethovenstr. 2A
 23617 Stockelsdorf
 Amtsgericht Lübeck, HRB 318 BS
 Geschäftsführer: Wilfried Paepcke, Dr. Andreas Longwitz, Josef Flatau
 


More information about the freebsd-bugs mailing list