1.1 --- a/core/smn_datapacks.cpp Wed Feb 14 01:25:45 2007 +0000
1.2 +++ b/core/smn_datapacks.cpp Wed Feb 14 11:03:03 2007 +0000
1.3 @@ -123,7 +123,7 @@
1.4 return pContext->ThrowNativeError("Invalid data pack handle %x (error %d)", hndl, herr);
1.5 }
1.6
1.7 - if (!pDataPack->IsReadable(sizeof(cell_t)))
1.8 + if (!pDataPack->IsReadable(sizeof(size_t) + sizeof(cell_t)))
1.9 {
1.10 return pContext->ThrowNativeError("DataPack operation is out of bounds.");
1.11 }
1.12 @@ -147,7 +147,7 @@
1.13 return pContext->ThrowNativeError("Invalid data pack handle %x (error %d)", hndl, herr);
1.14 }
1.15
1.16 - if (!pDataPack->IsReadable(sizeof(float)))
1.17 + if (!pDataPack->IsReadable(sizeof(size_t) + sizeof(float)))
1.18 {
1.19 return pContext->ThrowNativeError("DataPack operation is out of bounds.");
1.20 }