Added additional input validation to SDL_AllocPalette; added error codes; added test case to Pixels suite for coverage