# Bug in POD loader?

**URL:** <https://forums.imgtec.com/t/bug-in-pod-loader/440>\
**Category:** PowerVR Insider\
**Created:** [August 9, 2009, 5:46pm UTC](https://forums.imgtec.com/t/bug-in-pod-loader/440 "2009-08-09T17:46:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![basro](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@basro](https://forums.imgtec.com/u/basro)\
**Post date:** [August 9, 2009, 5:46pm UTC](https://forums.imgtec.com/t/bug-in-pod-loader/440/1 "2009-08-09T17:46:54Z")

</div>

ReadAfterAlloc takes as second parameter dwNumberOfBytesToRead, however, it then uses SafeAlloc to allocate, which allocates sizeof(T) \* dwNumberOfBytesToRead.

Is this a bug? Is the length read from the file markers in bytes or size units of the type being read?
