Linux: fix libevent bug.
Linux: fix libevent bug.

r17436 exposed a libevent bug where an array is not resized to a large
enough size when it's one element too short.

This bug will be upstreamed to libevent.

http://codereview.chromium.org/112089
BUG=11999


git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@17449 0039d316-1c4b-4281-b951-d872f2087c98

hgl888/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,M4sse/chromium.src,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,Just-D/chromium-1,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,Fireblend/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,ondra-novak/chromium.src,patrickm/chromium.src,ltilve/chromium,hujiajie/pa-chromium,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,Chilledheart/chromium,robclark/chromium,timopulkkinen/BubbleFish,Jonekee/chromium.src,dushu1203/chromium.src,patrickm/chromium.src,hujiajie/pa-chromium,hgl888/chromium-crosswalk,zcbenz/cefode-chromium,ChromiumWebApps/chromium,dushu1203/chromium.src,robclark/chromium,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,fujunwei/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,axinging/chromium-crosswalk,dednal/chromium.src,jaruba/chromium.src,axinging/chromium-crosswalk,ChromiumWebApps/chromium,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,Jonekee/chromium.src,ltilve/chromium,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,keishi/chromium,jaruba/chromium.src,rogerwang/chromium,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,junmin-zhu/chromium-rivertrail,rogerwang/chromium,Jonekee/chromium.src,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,robclark/chromium,bright-sparks/chromium-spacewalk,Fireblend/chromium-crosswalk,M4sse/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,Just-D/chromium-1,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,keishi/chromium,ondra-novak/chromium.src,M4sse/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,anirudhSK/chromium,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,Jonekee/chromium.src,rogerwang/chromium,littlstar/chromium.src,keishi/chromium,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,markYoungH/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,dushu1203/chromium.src,anirudhSK/chromium,nacl-webkit/chrome_deps,M4sse/chromium.src,ltilve/chromium,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,markYoungH/chromium.src,rogerwang/chromium,Chilledheart/chromium,ondra-novak/chromium.src,littlstar/chromium.src,dednal/chromium.src,markYoungH/chromium.src,fujunwei/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,dednal/chromium.src,Fireblend/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,axinging/chromium-crosswalk,Jonekee/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,robclark/chromium,keishi/chromium,ltilve/chromium,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,Chilledheart/chromium,ondra-novak/chromium.src,Just-D/chromium-1,patrickm/chromium.src,nacl-webkit/chrome_deps,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,littlstar/chromium.src,ltilve/chromium,hujiajie/pa-chromium,Chilledheart/chromium,Just-D/chromium-1,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,chuan9/chromium-crosswalk,dednal/chromium.src,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,M4sse/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,hujiajie/pa-chromium,timopulkkinen/BubbleFish,crosswalk-project/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,anirudhSK/chromium,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,anirudhSK/chromium,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,dushu1203/chromium.src,mogoweb/chromium-crosswalk,chuan9/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,keishi/chromium,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,anirudhSK/chromium,markYoungH/chromium.src,junmin-zhu/chromium-rivertrail,bright-sparks/chromium-spacewalk,hujiajie/pa-chromium,timopulkkinen/BubbleFish,Just-D/chromium-1,hgl888/chromium-crosswalk,patrickm/chromium.src,ltilve/chromium,jaruba/chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,timopulkkinen/BubbleFish,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dushu1203/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,patrickm/chromium.src,Jonekee/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,Pluto-tv/chromium-crosswalk,keishi/chromium,robclark/chromium,ltilve/chromium,rogerwang/chromium,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,M4sse/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,ChromiumWebApps/chromium,M4sse/chromium.src,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,dednal/chromium.src,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,patrickm/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,anirudhSK/chromium,ltilve/chromium,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,ChromiumWebApps/chromium,dednal/chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,axinging/chromium-crosswalk,chuan9/chromium-crosswalk,krieger-od/nwjs_chromium.src,mogoweb/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,littlstar/chromium.src,zcbenz/cefode-chromium,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,markYoungH/chromium.src,patrickm/chromium.src,Chilledheart/chromium,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,robclark/chromium,M4sse/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,dednal/chromium.src,ondra-novak/chromium.src,axinging/chromium-crosswalk,markYoungH/chromium.src,M4sse/chromium.src,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,keishi/chromium,chuan9/chromium-crosswalk,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,keishi/chromium,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,rogerwang/chromium,robclark/chromium,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,anirudhSK/chromium,ChromiumWebApps/chromium,Just-D/chromium-1,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,jaruba/chromium.src,nacl-webkit/chrome_deps,rogerwang/chromium,markYoungH/chromium.src,robclark/chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,keishi/chromium,bright-sparks/chromium-spacewalk,rogerwang/chromium,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,nacl-webkit/chrome_deps,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,ltilve/chromium,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,zcbenz/cefode-chromium