Maximum value of uint32_t should be UINT32_MAX instead of ULONG_MAX am: 3416d89e43

Change-Id: I23b343bf5fc8dc258f165e8f2d3dde5123778e08