mpd/src/storage
Max Kellermann f849b07766 storage/curl: fix nullptr dereference
Pass a std::string to PathTraitsUTF8::Relative(), implicitly casting
it to std::string_view.  This selects the right overload which returns
std::string_view instead of `const char *`; the latter could return
`nullptr` which would cause the implicit conversion of the return
value to std::string_view to crash.

Regression caused by commits ead208987d and a98d627c0b.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/995
2020-11-06 15:35:47 +01:00
..
plugins storage/curl: fix nullptr dereference 2020-11-06 15:35:47 +01:00
CompositeStorage.cxx clang-tidy: remove pointless std::move 2020-09-26 21:34:25 -07:00
CompositeStorage.hxx Merge branch 'v0.21.x' 2020-07-06 20:56:52 +02:00
Configured.cxx copyright year 2020 2020-01-18 19:23:49 +01:00
Configured.hxx copyright year 2020 2020-01-18 19:23:49 +01:00
FileInfo.hxx replace stdint.h with cstdint 2020-03-12 19:04:39 -07:00
MemoryDirectoryReader.cxx remove gcc_unused 2020-03-16 00:08:21 -07:00
MemoryDirectoryReader.hxx copyright year 2020 2020-01-18 19:23:49 +01:00
meson.build Add boost_dep in subdir meson.build files 2018-12-09 17:20:47 +01:00
Registry.cxx copyright year 2020 2020-01-18 19:23:49 +01:00
Registry.hxx copyright year 2020 2020-01-18 19:23:49 +01:00
StorageInterface.cxx storage/Interface: convert URI parameters to std::string_view 2020-04-03 19:45:10 +02:00
StorageInterface.hxx storage/Interface: convert URI parameters to std::string_view 2020-04-03 19:45:10 +02:00
StoragePlugin.hxx copyright year 2020 2020-01-18 19:23:49 +01:00
StorageState.cxx Merge branch 'v0.21.x' 2020-07-06 20:56:52 +02:00
StorageState.hxx copyright year 2020 2020-01-18 19:23:49 +01:00