golang-ical: Property spanning multiple lines causes `Malformed Calendar Error`
Iterating over events in an Outlook generated .ics-File creates an invalid memory address or nil pointer dereference
-Error.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x4a5bdd]
goroutine 1 [running]:
github.com/arran4/golang-ical.(*Calendar).Events(0x0)
/workspaces/golang-ical/calendar.go:409 +0x1d
main.main()
/tmp/test/testing.go:14 +0x89
I have attached an example entry I exported from Outlook as well as my testing code to reproduce the error.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 25 (9 by maintainers)
Commits related to this issue
- Fix #48: removing newlines inside a property by intercepting iostream in NewCalendar and removing `0x0d 0x0a 0x09` — committed to JM-Lemmi/golang-ical by JM-Lemmi 2 years ago
- Merge pull request #2 from JM-Lemmi/patch48 Fix #48: removing newlines inside a property — committed to JM-Lemmi/golang-ical by JM-Lemmi 2 years ago
Oh sorry. I will have to have a better look after work, it could be that it’s defining the timezone with that ID.