Add EOS checking to 'parseLeadingNumber' function.
Add EOS checking to 'parseLeadingNumber' function.

Summary: parseLeadingNumber does not contain EOS validation and raise an exception when '/sys/devices/system/cpu/cpu0/index0/shared_cpu_list' contains only one number like '0'.
Closes #207

Reviewed By: @yfeldblum

Differential Revision: D2148015

Pulled By: @sgolemon

shaobz/folly,alexst07/folly,xzmagic/folly,upsoft/folly,CJstar/folly,xzmagic/folly,clearlylin/folly,alexst07/folly,hongliangzhao/folly,project-zerus/folly,bikong2/folly,kernelim/folly,zhiweicai/folly,zhiweicai/folly,hongliangzhao/folly,wildinto/folly,theiver9827/folly,cole14/folly,CJstar/folly,juniway/folly,upsoft/folly,stonegithubs/folly,arg0/folly,renyinew/folly,tomhughes/folly,chjp2046/folly,charsyam/folly,gaoyingie/folly,sonnyhu/folly,floxard/folly,theiver9827/folly,constantine001/folly,gavioto/folly,upsoft/folly,SeanRBurton/folly,charsyam/folly,juniway/folly,project-zerus/folly,loversInJapan/folly,Hincoin/folly,floxard/folly,zhiweicai/folly,facebook/folly,guker/folly,colemancda/folly,charsyam/folly,nickhen/folly,Orvid/folly,rklabs/folly,sakishum/folly,PPC64/folly,shaobz/folly,facebook/folly,reddit/folly,reddit/folly,renyinew/folly,arg0/folly,chjp2046/folly,lifei/folly,sakishum/folly,lifei/folly,colemancda/folly,stonegithubs/folly,zhiweicai/folly,colemancda/folly,cole14/folly,raphaelamorim/folly,tempbottle/folly,constantine001/folly,KSreeHarsha/folly,PoisonBOx/folly,KSreeHarsha/folly,stonegithubs/folly,stonegithubs/folly,Hincoin/folly,KSreeHarsha/folly,tempbottle/folly,lifei/folly,brunomorishita/folly,sonnyhu/folly,doctaweeks/folly,CJstar/folly,yangjin-unique/folly,wildinto/folly,leolujuyi/folly,SeanRBurton/folly,theiver9827/folly,wildinto/folly,shaobz/folly,alexst07/folly,yangjin-unique/folly,colemancda/folly,juniway/folly,PoisonBOx/folly,floxard/folly,bowlofstew/folly,gaoyingie/folly,guker/folly,cole14/folly,doctaweeks/folly,facebook/folly,zhiweicai/folly,guker/folly,sakishum/folly,mqeizi/folly,nickhen/folly,gavioto/folly,fw1121/folly,kernelim/folly,kernelim/folly,guker/folly,bowlofstew/folly,charsyam/folly,KSreeHarsha/folly,SammyK/folly,reddit/folly,SammyK/folly,constantine001/folly,guker/folly,loversInJapan/folly,leolujuyi/folly,Orvid/folly,hongliangzhao/folly,Eagle-X/folly,bowlofstew/folly,gaoyingie/folly,constantine001/folly,Hincoin/folly,Eagle-X/folly,mqeizi/folly,doctaweeks/folly,tomhughes/folly,clearlylin/folly,loversInJapan/folly,PPC64/folly,leolujuyi/folly,bobegir/folly,mqeizi/folly,SammyK/folly,renyinew/folly,nickhen/folly,wildinto/folly,leolujuyi/folly,Eagle-X/folly,lifei/folly,gavioto/folly,theiver9827/folly,arg0/folly,KSreeHarsha/folly,mqeizi/folly,SeanRBurton/folly,Orvid/folly,clearlylin/folly,cole14/folly,kernelim/folly,Orvid/folly,shaobz/folly,bikong2/folly,facebook/folly,fw1121/folly,nickhen/folly,gavioto/folly,reddit/folly,lifei/folly,gaoyingie/folly,shaobz/folly,bowlofstew/folly,tempbottle/folly,clearlylin/folly,mqeizi/folly,stonegithubs/folly,xzmagic/folly,raphaelamorim/folly,PoisonBOx/folly,sakishum/folly,sonnyhu/folly,bowlofstew/folly,loversInJapan/folly,xzmagic/folly,PPC64/folly,bobegir/folly,PPC64/folly,tomhughes/folly,brunomorishita/folly,raphaelamorim/folly,juniway/folly,wildinto/folly,tomhughes/folly,brunomorishita/folly,fw1121/folly,doctaweeks/folly,floxard/folly,rklabs/folly,project-zerus/folly,arg0/folly,tempbottle/folly,brunomorishita/folly,reddit/folly,bobegir/folly,CJstar/folly,loversInJapan/folly,yangjin-unique/folly,alexst07/folly,yangjin-unique/folly,xzmagic/folly,sonnyhu/folly,bikong2/folly,nickhen/folly,project-zerus/folly,PoisonBOx/folly,SeanRBurton/folly,leolujuyi/folly,chjp2046/folly,PoisonBOx/folly,SeanRBurton/folly,hongliangzhao/folly,sakishum/folly,chjp2046/folly,fw1121/folly,PPC64/folly,bikong2/folly,project-zerus/folly,bikong2/folly,CJstar/folly,rklabs/folly,clearlylin/folly,rklabs/folly,tomhughes/folly,kernelim/folly,yangjin-unique/folly,bobegir/folly,juniway/folly,arg0/folly,Hincoin/folly,alexst07/folly,theiver9827/folly,fw1121/folly,renyinew/folly,Hincoin/folly,rklabs/folly,facebook/folly,Orvid/folly,Eagle-X/folly,gavioto/folly,floxard/folly,tempbottle/folly,hongliangzhao/folly,SammyK/folly,doctaweeks/folly,upsoft/folly,raphaelamorim/folly,Eagle-X/folly,upsoft/folly,colemancda/folly,renyinew/folly,brunomorishita/folly,constantine001/folly,cole14/folly,raphaelamorim/folly,sonnyhu/folly,gaoyingie/folly,SammyK/folly,chjp2046/folly,bobegir/folly