zmap / zgrab2

Fast Go Application Scanner
Other
1.75k stars 307 forks source link

Postgresql out of memory error #288

Closed vl4deee11 closed 3 years ago

vl4deee11 commented 3 years ago

https://github.com/zmap/zgrab2/blob/3613392bf090b55df3725896155c9efaf22db435/modules/postgres/connection.go#L146 - in this place try to allocate 4294967292 bytes when sizeToRead == 0

vl4deee11 commented 3 years ago

Fix with https://github.com/zmap/zgrab2/pull/289