playlist/cue/parser: pass StringView to Feed()

This commit is contained in:
Max Kellermann
2020-10-05 20:27:31 +02:00
parent 34bb53a29f
commit e0c75da266
4 changed files with 9 additions and 8 deletions

View File

@@ -1,8 +1,6 @@
#include "playlist/cue/CueParser.hxx"
#include "util/IterableSplitString.hxx"
#include <string>
#include <string_view>
#include "util/StringView.hxx"
extern "C" {
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
@@ -15,7 +13,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
const std::string_view src{(const char *)data, size};
for (const auto line : IterableSplitString(src, '\n')) {
parser.Feed(std::string(line).c_str());
parser.Feed(line);
parser.Get();
}