dogeystamp/MinRSS

Atom content tag: crash when text is wrapped in a div

Opened this issue · 1 comments

MinRSS can't detect text with the following Atom feed:

<?xml version='1.0' encoding='utf-8'?>
<feed xmlns='http://www.w3.org/2005/Atom'>

<entry>
	<title>entry</title>
	<updated>2022-12-22T03:49:50.957866637+00:00</updated>
	<link href='https://example.com' />
	<content type='xhtml'><div xmlns='http://www.w3.org/1999/xhtml'>
		sample text
	</div></content>
</entry>
</feed>

The first child of the content tag is a div, and retrieving its text results in a null pointer dereference.

7d9e96d prevents the null pointer dereference, but doesn't actually read the content to the description field.