#1055215 rsstail segmentation fault

Package:
rsstail
Source:
rsstail
Description:
console RSS reader that monitors a feed and outputs new entries
Submitter:
Fourhundred Thecat
Date:
2023-11-02 10:39:10 UTC
Severity:
normal
#1055215#5
Date:
2023-11-02 10:28:02 UTC
From:
To:
when -r option is used (reverse) and when the feed is empty, rsstail
segfaults

   rsstail -u 'https://hnrss.org/bestcomments' -r
   zsh: segmentation fault  rsstail -u 'https://hnrss.org/bestcomments' -r

this only happens when the feed is empty. The above example works most
of the time, but sometimes happens to be empty and rsstail than always
segfaults

here is the saved empty feed that triggers the segfault:

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News:
Best
Comments</title><link>https://news.ycombinator.com/bestcomments</link><description>Hacker
News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss
v2.1.1</generator><lastBuildDate>Thu, 02 Nov 2023 10:13:33
+0000</lastBuildDate><atom:link href="https://hnrss.org/bestcomments"
rel="self" type="application/rss+xml"></atom:link></channel></rss>