leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
395 stars 93 forks source link

fix 0xFFFFFFFF parsed as 4294967295 instead of -1 on 64bits systems #84

Open dridri opened 5 years ago

dridri commented 5 years ago

Depending on host implementation, the decode_int function returns 4294967295 instead of -1, thus resulting in undefined behaviors (offset overflow) when query results contain null fields.