WallarooLabs / pony-kafka

:horse: Pure Pony Kafka client
Other
57 stars 4 forks source link

add bounds checking for type conversions to signed int types #28

Open dipinhora opened 6 years ago

dipinhora commented 6 years ago

There are some type conversions happening where overflows could occur. Bounds checking should be added for these situations to ensure correct results. It might be worth considering only adding bounds checking as part of a debug build to minimize negative impact on performance for production builds.