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

Change-Id: I46e3957176a70ae9768b7feccf07b11d64024436