DHowett / go-plist

A pure Go Apple Property List transcoder
Other
416 stars 97 forks source link

Prevent run time error with padding #66

Closed ghost closed 3 years ago

ghost commented 3 years ago

In some cases this code throws an out of bounds error when trying to add padding.

Error:

panic: runtime error: slice bounds out of range [5:4]

ghost commented 3 years ago

It seems that this does not work as intended.

Not sure why this throws the slice out of bounds error.

Could it be that Emojis cause this issue?

ghost commented 3 years ago

Here are some example Emoji Unicode examples

https://unicode.org/emoji/charts/full-emoji-list.html

Any idea how we could support this if we encounter Emojis?