Skip to content

Fix crash if itunes extensions are missing#668

Merged
sentriz merged 1 commit intosentriz:masterfrom
diepfote:fix-crash-itunes-ext
Mar 10, 2026
Merged

Fix crash if itunes extensions are missing#668
sentriz merged 1 commit intosentriz:masterfrom
diepfote:fix-crash-itunes-ext

Conversation

@diepfote
Copy link
Copy Markdown
Contributor

I came across this issue when I started to use a custom RSS generator that works fine for e.g. the Apple Podcasts app but results in a crash in gonic.

I found these nil pointer dereferences by looking at the stacktraces only.
No time was spent looking for additional locations were this might need to be fixed.

The custom generator if that helps
https://gist.github.com/diepfote/59aaf5eb8ea3e2d7bcdd97b8efd2a472

@diepfote
Copy link
Copy Markdown
Contributor Author

Here is where the generator uses the rss crate. rss::ChannelBuilder would need a itunesExtension parameter to output these.

As it seems to be an extension I'd consider expecting it to be there a bug.

Comment thread podcast/podcast.go Outdated
I came across this issue when I started to use a custom RSS
generator that works fine for e.g. the Apple Podcasts app
but results in a crash in gonic.

I found these nil pointer dereferences by looking at the stacktraces
only.
No time was spent looking for additional locations were this might need to
be fixed.

The custom generator if that helps
https://gist.github.com/diepfote/59aaf5eb8ea3e2d7bcdd97b8efd2a472
@diepfote diepfote force-pushed the fix-crash-itunes-ext branch from b80bd23 to 297c918 Compare March 10, 2026 20:56
@sentriz sentriz merged commit 9473ec7 into sentriz:master Mar 10, 2026
1 check passed
@sentriz
Copy link
Copy Markdown
Owner

sentriz commented Mar 10, 2026

thanks!

lurenyang418 pushed a commit to lurenyang418/gonic that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants