FIX: core: unchecked realloc
FIX: core: unchecked realloc

Also changed types to Py_ssize_t, and check for overflow when multiplying.

mindw/numpy,sinhrks/numpy,Linkid/numpy,Eric89GXL/numpy,felipebetancur/numpy,BabeNovelty/numpy,WillieMaddox/numpy,gfyoung/numpy,rgommers/numpy,trankmichael/numpy,drasmuss/numpy,jorisvandenbossche/numpy,groutr/numpy,b-carter/numpy,MaPePeR/numpy,MaPePeR/numpy,mwiebe/numpy,jschueller/numpy,SunghanKim/numpy,jakirkham/numpy,behzadnouri/numpy,KaelChen/numpy,rajathkumarmp/numpy,MSeifert04/numpy,rajathkumarmp/numpy,njase/numpy,musically-ut/numpy,shoyer/numpy,mwiebe/numpy,ContinuumIO/numpy,KaelChen/numpy,argriffing/numpy,kirillzhuravlev/numpy,stuarteberg/numpy,ChanderG/numpy,rhythmsosad/numpy,mhvk/numpy,bringingheavendown/numpy,cowlicks/numpy,chatcannon/numpy,jorisvandenbossche/numpy,sigma-random/numpy,MichaelAquilina/numpy,WarrenWeckesser/numpy,chiffa/numpy,utke1/numpy,pizzathief/numpy,nguyentu1602/numpy,jakirkham/numpy,cowlicks/numpy,chiffa/numpy,utke1/numpy,b-carter/numpy,pbrod/numpy,mortada/numpy,SiccarPoint/numpy,Srisai85/numpy,solarjoe/numpy,WarrenWeckesser/numpy,simongibbons/numpy,ChanderG/numpy,seberg/numpy,jankoslavic/numpy,mindw/numpy,tdsmith/numpy,pdebuyl/numpy,brandon-rhodes/numpy,sigma-random/numpy,mathdd/numpy,naritta/numpy,seberg/numpy,GaZ3ll3/numpy,maniteja123/numpy,rudimeier/numpy,felipebetancur/numpy,MichaelAquilina/numpy,MaPePeR/numpy,larsmans/numpy,dato-code/numpy,Srisai85/numpy,Anwesh43/numpy,CMartelLML/numpy,dch312/numpy,groutr/numpy,Yusa95/numpy,dimasad/numpy,rherault-insa/numpy,jschueller/numpy,chiffa/numpy,dch312/numpy,rmcgibbo/numpy,bertrand-l/numpy,rgommers/numpy,Eric89GXL/numpy,AustereCuriosity/numpy,MSeifert04/numpy,bertrand-l/numpy,shoyer/numpy,madphysicist/numpy,SunghanKim/numpy,mindw/numpy,skwbc/numpy,dato-code/numpy,jakirkham/numpy,anntzer/numpy,dch312/numpy,WillieMaddox/numpy,kirillzhuravlev/numpy,AustereCuriosity/numpy,githubmlai/numpy,empeeu/numpy,rhythmsosad/numpy,GaZ3ll3/numpy,has2k1/numpy,ahaldane/numpy,cowlicks/numpy,pizzathief/numpy,Srisai85/numpy,nbeaver/numpy,Eric89GXL/numpy,drasmuss/numpy,rgommers/numpy,sonnyhu/numpy,numpy/numpy,grlee77/numpy,dch312/numpy,BMJHayward/numpy,bmorris3/numpy,ChanderG/numpy,rudimeier/numpy,ajdawson/numpy,joferkington/numpy,sonnyhu/numpy,cjermain/numpy,ekalosak/numpy,SiccarPoint/numpy,naritta/numpy,sinhrks/numpy,stuarteberg/numpy,skymanaditya1/numpy,sigma-random/numpy,solarjoe/numpy,maniteja123/numpy,leifdenby/numpy,skymanaditya1/numpy,abalkin/numpy,pyparallel/numpy,hainm/numpy,ssanderson/numpy,chatcannon/numpy,grlee77/numpy,simongibbons/numpy,KaelChen/numpy,gfyoung/numpy,mattip/numpy,naritta/numpy,ContinuumIO/numpy,musically-ut/numpy,mortada/numpy,mhvk/numpy,ajdawson/numpy,musically-ut/numpy,mattip/numpy,pdebuyl/numpy,has2k1/numpy,numpy/numpy,skwbc/numpy,stuarteberg/numpy,mingwpy/numpy,Linkid/numpy,nguyentu1602/numpy,sinhrks/numpy,sigma-random/numpy,groutr/numpy,madphysicist/numpy,CMartelLML/numpy,ChristopherHogan/numpy,jonathanunderwood/numpy,pyparallel/numpy,sonnyhu/numpy,empeeu/numpy,mingwpy/numpy,utke1/numpy,sinhrks/numpy,joferkington/numpy,pizzathief/numpy,SiccarPoint/numpy,Srisai85/numpy,Linkid/numpy,ESSS/numpy,Dapid/numpy,larsmans/numpy,cowlicks/numpy,ViralLeadership/numpy,mathdd/numpy,charris/numpy,jankoslavic/numpy,solarjoe/numpy,mingwpy/numpy,Linkid/numpy,tacaswell/numpy,larsmans/numpy,tynn/numpy,has2k1/numpy,rajathkumarmp/numpy,BMJHayward/numpy,drasmuss/numpy,charris/numpy,chatcannon/numpy,tdsmith/numpy,mortada/numpy,rmcgibbo/numpy,ESSS/numpy,BabeNovelty/numpy,pbrod/numpy,ssanderson/numpy,kiwifb/numpy,felipebetancur/numpy,mingwpy/numpy,ViralLeadership/numpy,anntzer/numpy,argriffing/numpy,rajathkumarmp/numpy,nguyentu1602/numpy,rudimeier/numpy,pbrod/numpy,jorisvandenbossche/numpy,ekalosak/numpy,tynn/numpy,mhvk/numpy,SiccarPoint/numpy,skwbc/numpy,dimasad/numpy,abalkin/numpy,dwillmer/numpy,hainm/numpy,njase/numpy,MichaelAquilina/numpy,Anwesh43/numpy,grlee77/numpy,cjermain/numpy,simongibbons/numpy,anntzer/numpy,ahaldane/numpy,brandon-rhodes/numpy,Yusa95/numpy,MaPePeR/numpy,ajdawson/numpy,tdsmith/numpy,mathdd/numpy,dwillmer/numpy,seberg/numpy,BabeNovelty/numpy,mhvk/numpy,pdebuyl/numpy,Anwesh43/numpy,tacaswell/numpy,ChristopherHogan/numpy,KaelChen/numpy,githubmlai/numpy,endolith/numpy,moreati/numpy,naritta/numpy,ddasilva/numpy,ContinuumIO/numpy,jschueller/numpy,bmorris3/numpy,bringingheavendown/numpy,hainm/numpy,dimasad/numpy,dimasad/numpy,dato-code/numpy,ddasilva/numpy,MSeifert04/numpy,nbeaver/numpy,cjermain/numpy,larsmans/numpy,ESSS/numpy,tacaswell/numpy,seberg/numpy,mhvk/numpy,maniteja123/numpy,kiwifb/numpy,kiwifb/numpy,dwillmer/numpy,githubmlai/numpy,anntzer/numpy,ajdawson/numpy,empeeu/numpy,jorisvandenbossche/numpy,WarrenWeckesser/numpy,MSeifert04/numpy,madphysicist/numpy,Dapid/numpy,mathdd/numpy,mattip/numpy,b-carter/numpy,jakirkham/numpy,ahaldane/numpy,ChristopherHogan/numpy,Yusa95/numpy,sonnyhu/numpy,kirillzhuravlev/numpy,yiakwy/numpy,tynn/numpy,kirillzhuravlev/numpy,GaZ3ll3/numpy,skymanaditya1/numpy,rudimeier/numpy,grlee77/numpy,jonathanunderwood/numpy,musically-ut/numpy,pyparallel/numpy,nbeaver/numpy,MichaelAquilina/numpy,stuarteberg/numpy,rhythmsosad/numpy,CMartelLML/numpy,ekalosak/numpy,yiakwy/numpy,numpy/numpy,has2k1/numpy,madphysicist/numpy,simongibbons/numpy,mattip/numpy,Anwesh43/numpy,githubmlai/numpy,shoyer/numpy,rhythmsosad/numpy,endolith/numpy,hainm/numpy,Eric89GXL/numpy,numpy/numpy,endolith/numpy,WarrenWeckesser/numpy,abalkin/numpy,gmcastil/numpy,GrimDerp/numpy,cjermain/numpy,gmcastil/numpy,empeeu/numpy,leifdenby/numpy,charris/numpy,yiakwy/numpy,pbrod/numpy,ViralLeadership/numpy,charris/numpy,jankoslavic/numpy,moreati/numpy,madphysicist/numpy,rgommers/numpy,ddasilva/numpy,ahaldane/numpy,SunghanKim/numpy,simongibbons/numpy,shoyer/numpy,BMJHayward/numpy,trankmichael/numpy,bertrand-l/numpy,ekalosak/numpy,rherault-insa/numpy,skymanaditya1/numpy,bmorris3/numpy,mwiebe/numpy,jonathanunderwood/numpy,dato-code/numpy,Dapid/numpy,trankmichael/numpy,shoyer/numpy,GrimDerp/numpy,bmorris3/numpy,joferkington/numpy,gmcastil/numpy,ChristopherHogan/numpy,grlee77/numpy,jorisvandenbossche/numpy,njase/numpy,mindw/numpy,moreati/numpy,MSeifert04/numpy,GaZ3ll3/numpy,nguyentu1602/numpy,GrimDerp/numpy,jschueller/numpy,trankmichael/numpy,dwillmer/numpy,behzadnouri/numpy,rherault-insa/numpy,pbrod/numpy,CMartelLML/numpy,felipebetancur/numpy,ahaldane/numpy,pizzathief/numpy,brandon-rhodes/numpy,jankoslavic/numpy,mortada/numpy,yiakwy/numpy,argriffing/numpy,joferkington/numpy,pizzathief/numpy,rmcgibbo/numpy,WillieMaddox/numpy,AustereCuriosity/numpy,tdsmith/numpy,pdebuyl/numpy,ChanderG/numpy,GrimDerp/numpy,bringingheavendown/numpy,ssanderson/numpy,gfyoung/numpy,Yusa95/numpy,WarrenWeckesser/numpy,endolith/numpy,rmcgibbo/numpy,behzadnouri/numpy,SunghanKim/numpy,jakirkham/numpy,leifdenby/numpy,BMJHayward/numpy,brandon-rhodes/numpy,BabeNovelty/numpy