Check that n + kBlockTrailerSize does not overflow before reading a block
Check that n + kBlockTrailerSize does not overflow before reading a block

PiperOrigin-RevId: 191666300

apark263/tensorflow,dendisuhubdy/tensorflow,jendap/tensorflow,kobejean/tensorflow,snnn/tensorflow,asimshankar/tensorflow,arborh/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,girving/tensorflow,annarev/tensorflow,adit-chandra/tensorflow,aselle/tensorflow,cxxgtxy/tensorflow,drpngx/tensorflow,dendisuhubdy/tensorflow,gojira/tensorflow,apark263/tensorflow,jhseu/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kobejean/tensorflow,kobejean/tensorflow,girving/tensorflow,ppwwyyxx/tensorflow,alsrgv/tensorflow,jbedorf/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow,ghchinoy/tensorflow,kobejean/tensorflow,meteorcloudy/tensorflow,cxxgtxy/tensorflow,dongjoon-hyun/tensorflow,DavidNorman/tensorflow,ageron/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,DavidNorman/tensorflow,Bismarrck/tensorflow,kevin-coder/tensorflow-fork,jendap/tensorflow,jbedorf/tensorflow,jalexvig/tensorflow,davidzchen/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,chemelnucfin/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,aam-at/tensorflow,jalexvig/tensorflow,hehongliang/tensorflow,hehongliang/tensorflow,drpngx/tensorflow,dongjoon-hyun/tensorflow,manipopopo/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,jbedorf/tensorflow,DavidNorman/tensorflow,snnn/tensorflow,apark263/tensorflow,gautam1858/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,kevin-coder/tensorflow-fork,adit-chandra/tensorflow,adit-chandra/tensorflow,brchiu/tensorflow,ageron/tensorflow,dongjoon-hyun/tensorflow,jhseu/tensorflow,alshedivat/tensorflow,caisq/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xodus7/tensorflow,gunan/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,nburn42/tensorflow,jbedorf/tensorflow,xodus7/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,yanchen036/tensorflow,asimshankar/tensorflow,frreiss/tensorflow-fred,lukeiwanski/tensorflow,eaplatanios/tensorflow,jhseu/tensorflow,aselle/tensorflow,freedomtan/tensorflow,AnishShah/tensorflow,aselle/tensorflow,freedomtan/tensorflow,jalexvig/tensorflow,paolodedios/tensorflow,arborh/tensorflow,lukeiwanski/tensorflow,xzturn/tensorflow,AnishShah/tensorflow,gojira/tensorflow,ZhangXinNan/tensorflow,ageron/tensorflow,ZhangXinNan/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,DavidNorman/tensorflow,aldian/tensorflow,paolodedios/tensorflow,gunan/tensorflow,sarvex/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,jendap/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow,alsrgv/tensorflow,manipopopo/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,gautam1858/tensorflow,eaplatanios/tensorflow,freedomtan/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jbedorf/tensorflow,girving/tensorflow,asimshankar/tensorflow,jart/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,brchiu/tensorflow,brchiu/tensorflow,allenlavoie/tensorflow,nburn42/tensorflow,paolodedios/tensorflow,hehongliang/tensorflow,gautam1858/tensorflow,drpngx/tensorflow,AnishShah/tensorflow,Intel-Corporation/tensorflow,allenlavoie/tensorflow,nburn42/tensorflow,dancingdan/tensorflow,gunan/tensorflow,alshedivat/tensorflow,lukeiwanski/tensorflow,hfp/tensorflow-xsmm,jalexvig/tensorflow,yongtang/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,meteorcloudy/tensorflow,davidzchen/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,eaplatanios/tensorflow,hehongliang/tensorflow,jendap/tensorflow,apark263/tensorflow,yanchen036/tensorflow,snnn/tensorflow,jendap/tensorflow,snnn/tensorflow,jendap/tensorflow,caisq/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,alsrgv/tensorflow,Intel-tensorflow/tensorflow,benoitsteiner/tensorflow-xsmm,xzturn/tensorflow,davidzchen/tensorflow,dongjoon-hyun/tensorflow,ageron/tensorflow,brchiu/tensorflow,Intel-Corporation/tensorflow,caisq/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,jart/tensorflow,arborh/tensorflow,yanchen036/tensorflow,girving/tensorflow,theflofly/tensorflow,chemelnucfin/tensorflow,gautam1858/tensorflow,aselle/tensorflow,gunan/tensorflow,caisq/tensorflow,apark263/tensorflow,alsrgv/tensorflow,petewarden/tensorflow,xodus7/tensorflow,davidzchen/tensorflow,hfp/tensorflow-xsmm,hfp/tensorflow-xsmm,chemelnucfin/tensorflow,renyi533/tensorflow,lukeiwanski/tensorflow,alshedivat/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,Intel-tensorflow/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,paolodedios/tensorflow,gunan/tensorflow,paolodedios/tensorflow,arborh/tensorflow,dendisuhubdy/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,annarev/tensorflow,dongjoon-hyun/tensorflow,Intel-Corporation/tensorflow,dongjoon-hyun/tensorflow,alshedivat/tensorflow,jhseu/tensorflow,nburn42/tensorflow,davidzchen/tensorflow,caisq/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,jalexvig/tensorflow,hfp/tensorflow-xsmm,hfp/tensorflow-xsmm,yongtang/tensorflow,renyi533/tensorflow,dongjoon-hyun/tensorflow,caisq/tensorflow,xzturn/tensorflow,eaplatanios/tensorflow,seanli9jan/tensorflow,aam-at/tensorflow,sarvex/tensorflow,tensorflow/tensorflow,brchiu/tensorflow,caisq/tensorflow,theflofly/tensorflow,tensorflow/tensorflow,snnn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jendap/tensorflow,aselle/tensorflow,kobejean/tensorflow,gautam1858/tensorflow,allenlavoie/tensorflow,chemelnucfin/tensorflow,theflofly/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,benoitsteiner/tensorflow-xsmm,Intel-tensorflow/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,lukeiwanski/tensorflow,kevin-coder/tensorflow-fork,jart/tensorflow,Bismarrck/tensorflow,jart/tensorflow,paolodedios/tensorflow,yanchen036/tensorflow,dancingdan/tensorflow,benoitsteiner/tensorflow-xsmm,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,Intel-tensorflow/tensorflow,drpngx/tensorflow,chemelnucfin/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,karllessard/tensorflow,karllessard/tensorflow,asimshankar/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,annarev/tensorflow,apark263/tensorflow,chemelnucfin/tensorflow,seanli9jan/tensorflow,sarvex/tensorflow,tensorflow/tensorflow,dendisuhubdy/tensorflow,snnn/tensorflow,annarev/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,Bismarrck/tensorflow,jbedorf/tensorflow,eaplatanios/tensorflow,adit-chandra/tensorflow,Bismarrck/tensorflow,seanli9jan/tensorflow,jalexvig/tensorflow,ZhangXinNan/tensorflow,aam-at/tensorflow,xzturn/tensorflow,xzturn/tensorflow,meteorcloudy/tensorflow,jendap/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,aldian/tensorflow,eaplatanios/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,sarvex/tensorflow,brchiu/tensorflow,eaplatanios/tensorflow,meteorcloudy/tensorflow,eaplatanios/tensorflow,gautam1858/tensorflow,arborh/tensorflow,aselle/tensorflow,arborh/tensorflow,dancingdan/tensorflow,eaplatanios/tensorflow,yongtang/tensorflow,xodus7/tensorflow,adit-chandra/tensorflow,nburn42/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,jart/tensorflow,girving/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,manipopopo/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,aam-at/tensorflow,Bismarrck/tensorflow,dancingdan/tensorflow,theflofly/tensorflow,Intel-Corporation/tensorflow,xodus7/tensorflow,ppwwyyxx/tensorflow,yongtang/tensorflow,alshedivat/tensorflow,kevin-coder/tensorflow-fork,jart/tensorflow,freedomtan/tensorflow,alsrgv/tensorflow,jart/tensorflow,AnishShah/tensorflow,renyi533/tensorflow,arborh/tensorflow,manipopopo/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,karllessard/tensorflow,jart/tensorflow,allenlavoie/tensorflow,allenlavoie/tensorflow,hfp/tensorflow-xsmm,caisq/tensorflow,apark263/tensorflow,chemelnucfin/tensorflow,petewarden/tensorflow,jart/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,davidzchen/tensorflow,kobejean/tensorflow,ppwwyyxx/tensorflow,xodus7/tensorflow,kobejean/tensorflow,annarev/tensorflow,petewarden/tensorflow,theflofly/tensorflow,DavidNorman/tensorflow,dendisuhubdy/tensorflow,freedomtan/tensorflow,hehongliang/tensorflow,ageron/tensorflow,jhseu/tensorflow,gojira/tensorflow,hfp/tensorflow-xsmm,aam-at/tensorflow,asimshankar/tensorflow,karllessard/tensorflow,petewarden/tensorflow,xodus7/tensorflow,renyi533/tensorflow,kevin-coder/tensorflow-fork,seanli9jan/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,girving/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,ZhangXinNan/tensorflow,Bismarrck/tensorflow,ghchinoy/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,freedomtan/tensorflow,yanchen036/tensorflow,aldian/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,dancingdan/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,xodus7/tensorflow,chemelnucfin/tensorflow,lukeiwanski/tensorflow,gunan/tensorflow,benoitsteiner/tensorflow-xsmm,ghchinoy/tensorflow,nburn42/tensorflow,jalexvig/tensorflow,gunan/tensorflow,DavidNorman/tensorflow,benoitsteiner/tensorflow-xsmm,paolodedios/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,asimshankar/tensorflow,gojira/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,frreiss/tensorflow-fred,ZhangXinNan/tensorflow,Intel-Corporation/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,ageron/tensorflow,adit-chandra/tensorflow,nburn42/tensorflow,renyi533/tensorflow,nburn42/tensorflow,gojira/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,ageron/tensorflow,aam-at/tensorflow,dancingdan/tensorflow,dendisuhubdy/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,dendisuhubdy/tensorflow,meteorcloudy/tensorflow,asimshankar/tensorflow,kobejean/tensorflow,petewarden/tensorflow,jbedorf/tensorflow,girving/tensorflow,manipopopo/tensorflow,yanchen036/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,brchiu/tensorflow,seanli9jan/tensorflow,chemelnucfin/tensorflow,manipopopo/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,jalexvig/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,ZhangXinNan/tensorflow,seanli9jan/tensorflow,aam-at/tensorflow,petewarden/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,drpngx/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,seanli9jan/tensorflow,gunan/tensorflow,benoitsteiner/tensorflow-xsmm,gunan/tensorflow,davidzchen/tensorflow,AnishShah/tensorflow,aldian/tensorflow,gojira/tensorflow,jbedorf/tensorflow,paolodedios/tensorflow,nburn42/tensorflow,aldian/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,frreiss/tensorflow-fred,apark263/tensorflow,dancingdan/tensorflow,hfp/tensorflow-xsmm,meteorcloudy/tensorflow,jbedorf/tensorflow,xzturn/tensorflow,kobejean/tensorflow,chemelnucfin/tensorflow,girving/tensorflow,brchiu/tensorflow,allenlavoie/tensorflow,davidzchen/tensorflow,dendisuhubdy/tensorflow,frreiss/tensorflow-fred,ghchinoy/tensorflow,jalexvig/tensorflow,jendap/tensorflow,gunan/tensorflow,lukeiwanski/tensorflow,seanli9jan/tensorflow,snnn/tensorflow,lukeiwanski/tensorflow,asimshankar/tensorflow,aselle/tensorflow,tensorflow/tensorflow,ppwwyyxx/tensorflow,caisq/tensorflow,aselle/tensorflow,theflofly/tensorflow,yongtang/tensorflow,karllessard/tensorflow,dancingdan/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alshedivat/tensorflow,ageron/tensorflow,dendisuhubdy/tensorflow,yongtang/tensorflow,drpngx/tensorflow,alsrgv/tensorflow,meteorcloudy/tensorflow,AnishShah/tensorflow,hehongliang/tensorflow,arborh/tensorflow,xzturn/tensorflow,kevin-coder/tensorflow-fork,nburn42/tensorflow,Intel-tensorflow/tensorflow,theflofly/tensorflow,eaplatanios/tensorflow,renyi533/tensorflow,girving/tensorflow,arborh/tensorflow,theflofly/tensorflow,gojira/tensorflow,hfp/tensorflow-xsmm,adit-chandra/tensorflow,ageron/tensorflow,meteorcloudy/tensorflow,alsrgv/tensorflow,ghchinoy/tensorflow,ZhangXinNan/tensorflow,snnn/tensorflow,girving/tensorflow,theflofly/tensorflow,brchiu/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,manipopopo/tensorflow,jalexvig/tensorflow,tensorflow/tensorflow-pywrap_saved_model,eaplatanios/tensorflow,ageron/tensorflow,meteorcloudy/tensorflow,drpngx/tensorflow,AnishShah/tensorflow,dancingdan/tensorflow,xzturn/tensorflow,jalexvig/tensorflow,tensorflow/tensorflow,kobejean/tensorflow,AnishShah/tensorflow,ZhangXinNan/tensorflow,arborh/tensorflow,girving/tensorflow,asimshankar/tensorflow,ZhangXinNan/tensorflow,asimshankar/tensorflow,drpngx/tensorflow,manipopopo/tensorflow,drpngx/tensorflow,jbedorf/tensorflow,kevin-coder/tensorflow-fork,meteorcloudy/tensorflow,ageron/tensorflow,annarev/tensorflow,Bismarrck/tensorflow,gojira/tensorflow,dongjoon-hyun/tensorflow,gautam1858/tensorflow,allenlavoie/tensorflow,caisq/tensorflow,Intel-Corporation/tensorflow,theflofly/tensorflow,karllessard/tensorflow,dendisuhubdy/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,Bismarrck/tensorflow,snnn/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,hehongliang/tensorflow,adit-chandra/tensorflow,jendap/tensorflow,cxxgtxy/tensorflow,jbedorf/tensorflow,freedomtan/tensorflow,xodus7/tensorflow,annarev/tensorflow,aselle/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,aam-at/tensorflow,nburn42/tensorflow,aam-at/tensorflow,kevin-coder/tensorflow-fork,karllessard/tensorflow,gojira/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,AnishShah/tensorflow,ghchinoy/tensorflow,alsrgv/tensorflow,benoitsteiner/tensorflow-xsmm,theflofly/tensorflow,yanchen036/tensorflow,yanchen036/tensorflow,hfp/tensorflow-xsmm,ZhangXinNan/tensorflow,lukeiwanski/tensorflow,gunan/tensorflow,petewarden/tensorflow,kevin-coder/tensorflow-fork,seanli9jan/tensorflow,davidzchen/tensorflow,aselle/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jart/tensorflow,arborh/tensorflow,xzturn/tensorflow,gojira/tensorflow,allenlavoie/tensorflow,arborh/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,allenlavoie/tensorflow,dancingdan/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,manipopopo/tensorflow,allenlavoie/tensorflow,gojira/tensorflow,manipopopo/tensorflow,allenlavoie/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,apark263/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,kevin-coder/tensorflow-fork,chemelnucfin/tensorflow,ghchinoy/tensorflow,ZhangXinNan/tensorflow,seanli9jan/tensorflow,drpngx/tensorflow,theflofly/tensorflow,gautam1858/tensorflow,kevin-coder/tensorflow-fork,paolodedios/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,sarvex/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,snnn/tensorflow,yongtang/tensorflow,snnn/tensorflow,AnishShah/tensorflow,jhseu/tensorflow,lukeiwanski/tensorflow,xodus7/tensorflow,seanli9jan/tensorflow,alshedivat/tensorflow,ppwwyyxx/tensorflow,alsrgv/tensorflow,gautam1858/tensorflow,Bismarrck/tensorflow,xodus7/tensorflow,aselle/tensorflow,jhseu/tensorflow,AnishShah/tensorflow,dongjoon-hyun/tensorflow,yongtang/tensorflow,aam-at/tensorflow