• Juha Reunanen's avatar
    Problem: integer overflow when calculating sizes (may happen e.g. with very large images) (#1148) · cf5e25a9
    Juha Reunanen authored
    * Problem: integer overflow when calculating sizes (may happen e.g. with very large images)
    Solution: change some types from (unsigned) long to size_t
    
    # Conflicts:
    #	dlib/dnn/tensor.h
    
    * Fix the fact that std::numeric_limits<unsigned long>::max() isn't always the same number
    
    * Revert serialization changes
    
    * Review fix: use long long instead of size_t
    
    * From long to long long all the way
    
    * Change more types to (hopefully) make the compiler happy
    
    * Change many more types to size_t
    
    * Change even more types to size_t
    
    * Minor type changes
    cf5e25a9
object_detector_advanced_ex.cpp 12.5 KB