On Thu, Nov 05, 2015 at 04:18:58PM -0500, Lennart Sorensen wrote:
> OK blowing up here:
> 
>                         /*
>                          * Search for a range of contiguous pages in
>                          * the free page list of the current
>                          * extent. The range must be 'bsize' long.
>                          */
>                         do {
>                                 lastpage = freepage;
> ---->                           freepage = *((caddr_t *) freepage);
>                                 freecont += heap->pagesize;
>                         }
>                         while (freepage == lastpage + heap->pagesize
>                                && freecont < bsize);
> 
> I wonder if I am getting to the end of the list and trying to derefence
> a NULL pointer as a result.  I see nothing in the code to make sure it
> doesn't try to do that, although I hope I am just misreading the code.

Well it does handle NULL checking at the top with while (freepage !=
NULL), so how is this derefencing doing that.   Hmm.

-- 
Len Sorensen

_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai

Reply via email to