How pitted is too pitted?

I'm not sure those are rust pits but might be casting defects. But like Inertia said the sealing surface is the piston and as long as that is new or clean and the seal is new or clean you should be good to go.