config: check for EOF before newline
config: check for EOF before newline

If a line ends at EOF there is no need to check for the newline
character and doing so will cause us to read memory beyond the
allocatd memory as we check for the Windows-style new-line, which is
two bytes long.

Signed-off-by: Carlos Martín Nieto <eecb638c0e60875b4a70118790d5be43bb59c2d6@elego.de>

zodiac/libgit2.js,evhan/libgit2,mhp/libgit2,Snazz2001/libgit2,spraints/libgit2,claudelee/libgit2,Tousiph/Demo1,iankronquist/libgit2,Tousiph/Demo1,maxiaoqian/libgit2,claudelee/libgit2,MrHacky/libgit2,dleehr/libgit2,nokiddin/libgit2,yosefhackmon/libgit2,dleehr/libgit2,swisspol/DEMO-libgit2,iankronquist/libgit2,saurabhsuniljain/libgit2,stewid/libgit2,Snazz2001/libgit2,spraints/libgit2,leoyanggit/libgit2,stewid/libgit2,since2014/libgit2,sim0629/libgit2,magnus98/TEST,kissthink/libgit2,saurabhsuniljain/libgit2,whoisj/libgit2,whoisj/libgit2,saurabhsuniljain/libgit2,oaastest/libgit2,MrHacky/libgit2,t0xicCode/libgit2,raybrad/libit2,mhp/libgit2,sim0629/libgit2,JIghtuse/libgit2,rcorre/libgit2,KTXSoftware/libgit2,mingyaaaa/libgit2,mingyaaaa/libgit2,skabel/manguse,KTXSoftware/libgit2,jeffhostetler/public_libgit2,magnus98/TEST,sygool/libgit2,yongthecoder/libgit2,iankronquist/libgit2,mrksrm/Mingijura,MrHacky/libgit2,jamieleecool/ptest,saurabhsuniljain/libgit2,JIghtuse/libgit2,kissthink/libgit2,mhp/libgit2,mcanthony/libgit2,leoyanggit/libgit2,swisspol/DEMO-libgit2,maxiaoqian/libgit2,KTXSoftware/libgit2,sygool/libgit2,maxiaoqian/libgit2,falqas/libgit2,chiayolin/libgit2,stewid/libgit2,kissthink/libgit2,claudelee/libgit2,amyvmiwei/libgit2,mingyaaaa/libgit2,mcanthony/libgit2,since2014/libgit2,skabel/manguse,JIghtuse/libgit2,falqas/libgit2,evhan/libgit2,jflesch/libgit2-mariadb,Aorjoa/libgit2_maked_lib,Snazz2001/libgit2,whoisj/libgit2,linquize/libgit2,joshtriplett/libgit2,spraints/libgit2,mcanthony/libgit2,stewid/libgit2,Snazz2001/libgit2,Corillian/libgit2,claudelee/libgit2,mrksrm/Mingijura,zodiac/libgit2.js,oaastest/libgit2,mrksrm/Mingijura,t0xicCode/libgit2,Aorjoa/libgit2_maked_lib,since2014/libgit2,mingyaaaa/libgit2,linquize/libgit2,evhan/libgit2,amyvmiwei/libgit2,kissthink/libgit2,raybrad/libit2,JIghtuse/libgit2,yosefhackmon/libgit2,spraints/libgit2,iankronquist/libgit2,mcanthony/libgit2,amyvmiwei/libgit2,saurabhsuniljain/libgit2,ardumont/libgit2,sim0629/libgit2,Aorjoa/libgit2_maked_lib,skabel/manguse,iankronquist/libgit2,MrHacky/libgit2,Corillian/libgit2,nokiddin/libgit2,zodiac/libgit2.js,jeffhostetler/public_libgit2,oaastest/libgit2,joshtriplett/libgit2,swisspol/DEMO-libgit2,joshtriplett/libgit2,KTXSoftware/libgit2,nokiddin/libgit2,ardumont/libgit2,falqas/libgit2,since2014/libgit2,spraints/libgit2,jflesch/libgit2-mariadb,kenprice/libgit2,magnus98/TEST,zodiac/libgit2.js,magnus98/TEST,maxiaoqian/libgit2,oaastest/libgit2,joshtriplett/libgit2,rcorre/libgit2,jflesch/libgit2-mariadb,maxiaoqian/libgit2,raybrad/libit2,jeffhostetler/public_libgit2,chiayolin/libgit2,mrksrm/Mingijura,linquize/libgit2,nacho/libgit2,t0xicCode/libgit2,yongthecoder/libgit2,skabel/manguse,claudelee/libgit2,jamieleecool/ptest,kissthink/libgit2,jamieleecool/ptest,whoisj/libgit2,yosefhackmon/libgit2,dleehr/libgit2,joshtriplett/libgit2,nokiddin/libgit2,ardumont/libgit2,jeffhostetler/public_libgit2,jflesch/libgit2-mariadb,jamieleecool/ptest,whoisj/libgit2,rcorre/libgit2,nacho/libgit2,kenprice/libgit2,jflesch/libgit2-mariadb,Tousiph/Demo1,mhp/libgit2,oaastest/libgit2,yosefhackmon/libgit2,Corillian/libgit2,Snazz2001/libgit2,since2014/libgit2,claudelee/libgit2,yosefhackmon/libgit2,chiayolin/libgit2,magnus98/TEST,spraints/libgit2,stewid/libgit2,raybrad/libit2,falqas/libgit2,MrHacky/libgit2,Tousiph/Demo1,Tousiph/Demo1,ardumont/libgit2,yongthecoder/libgit2,iankronquist/libgit2,Snazz2001/libgit2,sygool/libgit2,JIghtuse/libgit2,mcanthony/libgit2,sim0629/libgit2,sim0629/libgit2,KTXSoftware/libgit2,ardumont/libgit2,yosefhackmon/libgit2,mhp/libgit2,mcanthony/libgit2,mhp/libgit2,leoyanggit/libgit2,joshtriplett/libgit2,mingyaaaa/libgit2,KTXSoftware/libgit2,Corillian/libgit2,nokiddin/libgit2,zodiac/libgit2.js,kenprice/libgit2,stewid/libgit2,yongthecoder/libgit2,chiayolin/libgit2,magnus98/TEST,kissthink/libgit2,MrHacky/libgit2,t0xicCode/libgit2,dleehr/libgit2,jeffhostetler/public_libgit2,chiayolin/libgit2,dleehr/libgit2,amyvmiwei/libgit2,leoyanggit/libgit2,linquize/libgit2,falqas/libgit2,dleehr/libgit2,saurabhsuniljain/libgit2,evhan/libgit2,falqas/libgit2,amyvmiwei/libgit2,JIghtuse/libgit2,kenprice/libgit2,t0xicCode/libgit2,sygool/libgit2,jeffhostetler/public_libgit2,rcorre/libgit2,yongthecoder/libgit2,nacho/libgit2,linquize/libgit2,Corillian/libgit2,Corillian/libgit2,kenprice/libgit2,amyvmiwei/libgit2,kenprice/libgit2,yongthecoder/libgit2,leoyanggit/libgit2,whoisj/libgit2,sim0629/libgit2,since2014/libgit2,mrksrm/Mingijura,maxiaoqian/libgit2,Aorjoa/libgit2_maked_lib,linquize/libgit2,sygool/libgit2,sygool/libgit2,skabel/manguse,t0xicCode/libgit2,rcorre/libgit2,Tousiph/Demo1,swisspol/DEMO-libgit2,leoyanggit/libgit2,oaastest/libgit2,raybrad/libit2,swisspol/DEMO-libgit2,mrksrm/Mingijura,Aorjoa/libgit2_maked_lib,rcorre/libgit2,swisspol/DEMO-libgit2,mingyaaaa/libgit2,jflesch/libgit2-mariadb,chiayolin/libgit2,nacho/libgit2,skabel/manguse,nokiddin/libgit2,ardumont/libgit2