[ofw][IBAL] patch for pool corruption
Alex Estrin
alex.estrin at qlogic.com
Fri Mar 2 07:29:43 PST 2007
Hi Yossi,
This patch should fix potential pool corruption.
Please review.
Thanks,
Alex
Index: iou_ioc_mgr.c
===================================================================
--- iou_ioc_mgr.c (revision 599)
+++ iou_ioc_mgr.c (working copy)
@@ -1142,7 +1142,9 @@
return STATUS_NO_SUCH_DEVICE;
}
- p_string = ExAllocatePool( PagedPool, IOC_LOCATION_SIZE );
+ p_string = ExAllocatePool( PagedPool,
+ max( IOC_LOCATION_SIZE,
+ sizeof( WCHAR ) * ( sizeof(
p_ext->info.profile.id_string ) + 1 )));
if( !p_string )
{
IOU_PRINT_EXIT( TRACE_LEVEL_ERROR, IOU_DBG_ERROR,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iou_ioc_mgr.patch
Type: application/octet-stream
Size: 507 bytes
Desc: iou_ioc_mgr.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20070302/cb7638a4/attachment.obj>
More information about the ofw
mailing list