Both of these instances are EXTREMELY dangerous, as .357 Sig has a higher pressure rating than .40. And 10mm out of a .45, be very very glad you didn't suffer a kaboom there. The space around the bullet in the chamber/barrel probably saved your life, in both of these cases.
This is very true (though I would have said danger, many people lose chunks of thier face, or hands and do not die from kabooms.)
The .357Sig is actualy a necked down .40S&W, so since you fired it in a .40 barrel the pressures did not reach what they are designed to operate at. Not smart but I am not surprised nothing harmed you there. Horrible chamber support, but also horrible pressure buildup (meaning the round was also at a significantly lower velocity than rated for.)
As for the 10mm in a .45, the operating pressures are extremely different and that was very dangerous. Even though the .05 wasted space all around the cartridge meant it got nowhere near the pressures or velocity the 10mm round is designed to work at, it still had next to no case support. That lack of case support could still burst the case even at lower pressures.
As I mentioned you also achieved awful velocity on those rounds because the pressure escaped into the extra barrel and chamber space as well as around the bullet going down the barrel rather than being concentrated behind the bullet. So it was pointless. It wasn't like firing those calibers at all.
A .40S&W and 10mm are however the same diameter chamber and barrel. So the pressures will reach what they are designed to reach. If for some reason the extractor does not headspace the cartridge far enough (and it is not designed to headspace) or the back of the cartridge slips past the extractor, to rest where a 10mm round is supposed to then there will not be enough case support on significant weak forward portions of the brass. That is a reciped for a kaboom.
So whether it happens because the extractor was damaged on the previous shot, the model firearm has an extractor it does not headspace on, or it simply slips passed the extractor to rest on the breech face like the proper round is supposed to, it is all a recipe for danger.