If a canned good develops botulism cooking will not help. It's not the botulinum bacteria that will kill you it's the botulinum toxin that the bacteria create and heat does not destroy those toxins.
Foodborne botulism can be transmitted through food that has not been heated correctly prior to being canned or food that was not cooked correctly from a can. Most infant botulism cases cannot be prevented because the bacteria that cause this disease are in soil and dust. The bacteria can be found inside homes on floors, carpet, and countertops even after cleaning. Honey can contain the bacteria that cause infant botulism, so children less than 12 months old should not be fed honey. Honey is safe for persons one year of age and older.[29]
Cooking for at least 10 minutes will destroy botulism, is something that I've understood to be true now for a very long time. If you find any evidence to the contrary, please ping me. From the quote above, seems they're implying that heating the food properly does indeed destroy the toxin?