While most peptic ulcers do not become cancerous, the presence of certain risk factors can elevate the likelihood of gastric carcinoma. These risk factors include chronic Helicobacter pylori infection, a family history of gastric cancer, smoking, and a diet high in salty and smoked foods. If untreated, the persistent irritation and damage to the stomach lining can result in cancerous changes.