buf: protect against integer overflow
buf: protect against integer overflow

It's unlikely that we'll ever want to escape a string as long as
INT_MAX/6, but adding this check can't hurt.

* src/util/buf.c (virBufferEscapeSexpr, virBufferEscapeString):
Check for (unlikely) overflow.

jfehlig/libvirt,dumbbell/libvirt,eskultety/libvirt,rmarwaha/libvirt1,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,olafhering/libvirt,rmarwaha/libvirt1,agx/libvirt,libvirt/libvirt,shugaoye/libvirt,foomango/libvirt,warewolf/libvirt,taget/libvirt,danwent/libvirt-ovs,agx/libvirt,siboulet/libvirt-openvz,iam-TJ/libvirt,usc-isi/libvirt,trainstack/libvirt,bjzhang/libvirt,datto/libvirt,nertpinx/libvirt,wiedi/libvirt,emaste/libvirt,leilihh/libvirt,rmarwaha/libvirt1,dumbbell/libvirt,crobinso/libvirt,warewolf/libvirt,usc-isi/libvirt,warewolf/libvirt,bjzhang/libvirt,andreabolognani/libvirt,taget/libvirt,wiedi/libvirt,bjzhang/libvirt,rmarwaha/libvirt,andreabolognani/libvirt,jeckersb/libvirt,libvirt/libvirt,eskultety/libvirt,emaste/libvirt,soulxu/libvirt-xuhj,cbosdo/libvirt,warewolf/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,zhlcindy/libvirt-1.1.4-maintain,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,elmarco/libvirt,novel/fbsd-libvirt,jardasgit/libvirt,jfehlig/libvirt,warewolf/libvirt,datto/libvirt,zippy2/libvirt,novel/fbsd-libvirt,danwent/libvirt-ovs,datto/libvirt,olafhering/libvirt,taget/libvirt,libvirt/libvirt,rlaager/libvirt,leilihh/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,danwent/libvirt-ovs,zippy2/libvirt,agx/libvirt,leilihh/libvirt,rlaager/libvirt,cbosdo/libvirt,emaste/libvirt,iam-TJ/libvirt,warewolf/libvirt,rmarwaha/libvirt1,jeckersb/libvirt,trainstack/libvirt,taget/libvirt,jardasgit/libvirt,iam-TJ/libvirt,trainstack/libvirt,leilihh/libvirt,usc-isi/libvirt,cbosdo/libvirt,bjzhang/libvirt,rmarwaha/libvirt,fabianfreyer/libvirt,crobinso/libvirt,wiedi/libvirt,jeckersb/libvirt,zippy2/libvirt,elmarco/libvirt,dumbbell/libvirt,VenkatDatta/libvirt,crobinso/libvirt,agx/libvirt,usc-isi/libvirt,shugaoye/libvirt,wiedi/libvirt,novel/fbsd-libvirt,shugaoye/libvirt,elmarco/libvirt,jeckersb/libvirt,jeckersb/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,siboulet/libvirt-openvz,dumbbell/libvirt,jeckersb/libvirt,emaste/libvirt,soulxu/libvirt-xuhj,kantai/libvirt-vfork,datto/libvirt,soulxu/libvirt-xuhj,fabianfreyer/libvirt,libvirt/libvirt,jfehlig/libvirt,usc-isi/libvirt,eskultety/libvirt,shugaoye/libvirt,nertpinx/libvirt,olafhering/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,kantai/libvirt-vfork,jardasgit/libvirt,VenkatDatta/libvirt,zippy2/libvirt,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,elmarco/libvirt,fabianfreyer/libvirt,novel/fbsd-libvirt,emaste/libvirt,crobinso/libvirt,andreabolognani/libvirt,bjzhang/libvirt,danwent/libvirt-ovs,rmarwaha/libvirt,novel/fbsd-libvirt,kantai/libvirt-vfork,rlaager/libvirt,emaste/libvirt,wiedi/libvirt,datto/libvirt,novel/fbsd-libvirt,foomango/libvirt,rmarwaha/libvirt1,rlaager/libvirt,nertpinx/libvirt,jeckersb/libvirt,foomango/libvirt,VenkatDatta/libvirt,foomango/libvirt,dumbbell/libvirt,eskultety/libvirt,trainstack/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,leilihh/libvirt,iam-TJ/libvirt,siboulet/libvirt-openvz,nertpinx/libvirt,dumbbell/libvirt,taget/libvirt,kantai/libvirt-vfork,cbosdo/libvirt,emaste/libvirt,trainstack/libvirt,nertpinx/libvirt,jardasgit/libvirt,eskultety/libvirt,foomango/libvirt,kantai/libvirt-vfork,olafhering/libvirt,siboulet/libvirt-openvz,zhlcindy/libvirt-1.1.4-maintain,rmarwaha/libvirt1,agx/libvirt,andreabolognani/libvirt,wiedi/libvirt,shugaoye/libvirt,trainstack/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,rmarwaha/libvirt,rlaager/libvirt,wiedi/libvirt,VenkatDatta/libvirt,cbosdo/libvirt,soulxu/libvirt-xuhj,rmarwaha/libvirt,iam-TJ/libvirt,warewolf/libvirt,iam-TJ/libvirt,leilihh/libvirt