Integrate integer overflow fixes from security branch

* Throw exception on float cast overflow in dng_stream.cpp.
* Ensure hue is in range before converting to integer.
* Replace the limits from stdint.h by the limit from std::numeric_limits<>.

Change-Id: I660c730a8551a8613655898c0fff749925dad149
3 files changed