Francesco149 / oppai-ng

difficulty and pp calculator for osu!. better, smaller, faster rewrite of https://github.com/Francesco149/oppai
The Unlicense
155 stars 36 forks source link

Fix segfault on malformed taiko hitobjects #52

Closed tadeokondrak closed 5 years ago

tadeokondrak commented 5 years ago

o.sound_types could be null if the hitobject line had less than 5 commas.

Example:

[General]
Mode: 1
[HitObjects]
invalid

I wasn't really sure what to return because it's not a parsing function, but ERR_SYNTAX seems close enough

Francesco149 commented 5 years ago

hmm I want to handle this at the parsing stage at some point, but this is good enough for now :ok_hand: