apache / openwhisk-package-kafka

Apache OpenWhisk package for communicating with Kafka or Message Hub
https://openwhisk.apache.org/
Apache License 2.0
33 stars 43 forks source link

Prevent parsing floats as Infinity and -Infinity #332

Closed dubee closed 5 years ago

dubee commented 5 years ago

When reading a very large or very small float from Kafka, the consumer may convert that number into Infinity or -Infinity respectively. These changes cause an exception to occur in the json.loads function to prevent Infinity or -Infinity values as the OpenWhisk controller will reject such JSON as being invalid.