POSIX: fix logging of messages with file descriptors
POSIX: fix logging of messages with file descriptors

Sometimes the IPC Message logging code parses the message multiple
times. When we have a side array of FileDescriptors, this fails
because the array is consumed by the first parse and so the second
parse fails - causing a DCHECK failure.

Although we could write a system to all the side array to be parsed
multiple times, this code is only enabled in debugging mode and the
only advantage would be that we could log the actual descriptor
numbers. It doesn't appear that the performance hit would be
worthwhile.

Thus, we make hitting the end of the descriptor array a non-fatal
error. The returned descriptor will be -1. Since we have the number of
descriptors in the message header, the only case where this could mask
an actual issue would be where the browser and renderer disagree on
the structure of a given message. However, such a mismatch will
probably cause much more grevious errors anyway.


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

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