Complete code review on the pattern:  if(b->endbyte*8+bits>b->storage*8)goto overflow;
Complete code review on the pattern:
 if(b->endbyte*8+bits>b->storage*8)goto overflow;

Eliminate the possibility of b->endbyte overflow on buffer storage near or 
exactly at long storage limit; corrections made to both read and write.

Also, harden both read and write against requesting <0 or >32 read/write.  In both 
case, the packer is put into 'error' state.


svn path=/trunk/ogg/; revision=17268

ShiftMediaProject/ogg,ShiftMediaProject/ogg,ksophocleous/ogg,nicolaichuk/ogg,youfearm3/ogg,brion/ogg,mwgoldsmith/ogg,youfearm3/ogg,felipebetancur/ogg,nicolaichuk/ogg,brion/ogg,felipebetancur/ogg,mwgoldsmith/ogg,emscripten-ports/Ogg,emscripten-ports/Ogg,eidy/libogg,xiph/ogg,eidy/libogg,ksophocleous/ogg,xiph/ogg