Patch for:
Patch for:

The following patch to src/backend/libpq/pqpacket.c provides additional
checking for bad packet length data. It was tested with the Linux telnet
client, with netcat using the numbers.txt and by dumping random numbers
into the port.

Patch by: Alvaro Martinez Echevarria <alvaro@lander.es>

tangp3/gpdb,jmcatamney/gpdb,royc1/gpdb,chrishajas/gpdb,zeroae/postgres-xl,rvs/gpdb,snaga/postgres-xl,foyzur/gpdb,cjcjameson/gpdb,atris/gpdb,postmind-net/postgres-xl,Chibin/gpdb,lisakowen/gpdb,lisakowen/gpdb,janebeckman/gpdb,0x0FFF/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,kmjungersen/PostgresXL,oberstet/postgres-xl,50wu/gpdb,chrishajas/gpdb,zeroae/postgres-xl,Chibin/gpdb,adam8157/gpdb,xuegang/gpdb,0x0FFF/gpdb,xinzweb/gpdb,kaknikhil/gpdb,atris/gpdb,xinzweb/gpdb,oberstet/postgres-xl,Chibin/gpdb,0x0FFF/gpdb,pavanvd/postgres-xl,rvs/gpdb,rubikloud/gpdb,zaksoup/gpdb,rvs/gpdb,adam8157/gpdb,xuegang/gpdb,rubikloud/gpdb,cjcjameson/gpdb,zeroae/postgres-xl,randomtask1155/gpdb,arcivanov/postgres-xl,50wu/gpdb,jmcatamney/gpdb,xuegang/gpdb,chrishajas/gpdb,rvs/gpdb,rvs/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,xinzweb/gpdb,tangp3/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,ovr/postgres-xl,tangp3/gpdb,Chibin/gpdb,edespino/gpdb,zaksoup/gpdb,zeroae/postgres-xl,rvs/gpdb,ashwinstar/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,ashwinstar/gpdb,zaksoup/gpdb,janebeckman/gpdb,rvs/gpdb,xuegang/gpdb,Quikling/gpdb,yazun/postgres-xl,ahachete/gpdb,50wu/gpdb,CraigHarris/gpdb,Postgres-XL/Postgres-XL,lintzc/gpdb,Quikling/gpdb,tangp3/gpdb,snaga/postgres-xl,Quikling/gpdb,arcivanov/postgres-xl,tpostgres-projects/tPostgres,xuegang/gpdb,cjcjameson/gpdb,edespino/gpdb,greenplum-db/gpdb,adam8157/gpdb,janebeckman/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,xuegang/gpdb,kaknikhil/gpdb,ovr/postgres-xl,edespino/gpdb,tangp3/gpdb,Chibin/gpdb,yazun/postgres-xl,lisakowen/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,yazun/postgres-xl,0x0FFF/gpdb,atris/gpdb,tangp3/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,50wu/gpdb,CraigHarris/gpdb,royc1/gpdb,zaksoup/gpdb,postmind-net/postgres-xl,randomtask1155/gpdb,lintzc/gpdb,randomtask1155/gpdb,tpostgres-projects/tPostgres,cjcjameson/gpdb,xinzweb/gpdb,CraigHarris/gpdb,lisakowen/gpdb,atris/gpdb,zaksoup/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,ahachete/gpdb,kmjungersen/PostgresXL,foyzur/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,Quikling/gpdb,foyzur/gpdb,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,edespino/gpdb,lisakowen/gpdb,techdragon/Postgres-XL,greenplum-db/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,yuanzhao/gpdb,adam8157/gpdb,Quikling/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,foyzur/gpdb,atris/gpdb,foyzur/gpdb,arcivanov/postgres-xl,arcivanov/postgres-xl,lintzc/gpdb,royc1/gpdb,lpetrov-pivotal/gpdb,lpetrov-pivotal/gpdb,oberstet/postgres-xl,CraigHarris/gpdb,chrishajas/gpdb,techdragon/Postgres-XL,lpetrov-pivotal/gpdb,jmcatamney/gpdb,edespino/gpdb,janebeckman/gpdb,Quikling/gpdb,yuanzhao/gpdb,Postgres-XL/Postgres-XL,cjcjameson/gpdb,Quikling/gpdb,ahachete/gpdb,edespino/gpdb,randomtask1155/gpdb,janebeckman/gpdb,yuanzhao/gpdb,tpostgres-projects/tPostgres,0x0FFF/gpdb,chrishajas/gpdb,adam8157/gpdb,xinzweb/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,snaga/postgres-xl,chrishajas/gpdb,royc1/gpdb,50wu/gpdb,atris/gpdb,postmind-net/postgres-xl,lintzc/gpdb,kmjungersen/PostgresXL,ashwinstar/gpdb,CraigHarris/gpdb,Chibin/gpdb,adam8157/gpdb,kaknikhil/gpdb,ovr/postgres-xl,rvs/gpdb,ashwinstar/gpdb,rubikloud/gpdb,chrishajas/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,kaknikhil/gpdb,rubikloud/gpdb,atris/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,snaga/postgres-xl,pavanvd/postgres-xl,zaksoup/gpdb,Chibin/gpdb,xuegang/gpdb,CraigHarris/gpdb,royc1/gpdb,royc1/gpdb,Chibin/gpdb,kaknikhil/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,ovr/postgres-xl,lintzc/gpdb,edespino/gpdb,yuanzhao/gpdb,Quikling/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,foyzur/gpdb,Quikling/gpdb,janebeckman/gpdb,greenplum-db/gpdb,xuegang/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,edespino/gpdb,zaksoup/gpdb,adam8157/gpdb,oberstet/postgres-xl,lintzc/gpdb,CraigHarris/gpdb,ahachete/gpdb,chrishajas/gpdb,rubikloud/gpdb,Postgres-XL/Postgres-XL,yuanzhao/gpdb,foyzur/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,edespino/gpdb,kaknikhil/gpdb,ovr/postgres-xl,xinzweb/gpdb,ahachete/gpdb,xuegang/gpdb,cjcjameson/gpdb,postmind-net/postgres-xl,zaksoup/gpdb,50wu/gpdb,ahachete/gpdb,yazun/postgres-xl,lisakowen/gpdb,snaga/postgres-xl,ahachete/gpdb,janebeckman/gpdb,50wu/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,tpostgres-projects/tPostgres,lintzc/gpdb,zeroae/postgres-xl,techdragon/Postgres-XL,rubikloud/gpdb,xinzweb/gpdb,pavanvd/postgres-xl,ahachete/gpdb,randomtask1155/gpdb,lintzc/gpdb,adam8157/gpdb,Chibin/gpdb,cjcjameson/gpdb,royc1/gpdb,kmjungersen/PostgresXL,lpetrov-pivotal/gpdb,greenplum-db/gpdb,Quikling/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,rvs/gpdb,pavanvd/postgres-xl,janebeckman/gpdb,Postgres-XL/Postgres-XL,foyzur/gpdb,greenplum-db/gpdb,royc1/gpdb,janebeckman/gpdb,yazun/postgres-xl,Postgres-XL/Postgres-XL,lintzc/gpdb,yuanzhao/gpdb,lisakowen/gpdb,rvs/gpdb,rubikloud/gpdb,tpostgres-projects/tPostgres,tangp3/gpdb,xinzweb/gpdb,50wu/gpdb,randomtask1155/gpdb,techdragon/Postgres-XL,atris/gpdb,edespino/gpdb,tangp3/gpdb