Handling volatile liquids near an ignition point is always potentially hazardous... If you spill gasoline on the floor near the stove, you best get out quickly.. Otherwise, if its stored in air tight containers its safe - as long as it stays air tight.. A sealed gas can could build up pressure if its soaking up any radiant heat. Ever notice how a plastic gas can bloats up in the sunshine?
Now we have gasoline under pressure, which is fine until the can can't handle the pressure.. Then a seam could split or fumes could make their way through the cap. SO, I would never store a gas can that close to a stove, safe or not. Is it worth the risk?? Keep them out of line of sight with the stove also..