Skip to content
Snippets Groups Projects
Select Git revision
  • d3879a6bf6cf9c3d57c05ecc5c41679c5affe950
  • master default
  • v0.9
  • v0.8
  • v0.7
  • v0.6
  • v0.5
  • v0.4
  • v0.2
  • v0.1
10 results

vairdraw-src

sdegrande's avatar
sdegrande authored
The spec mentions that if a std::optional does not contain a value, then
the behavior of std::optional::operator*() is undefined.

Up to now, we did not check the state of an optional before to call
operator*(). This is a bad use, but there was no issue.
Something was changed with the libstdc++ provided with gcc15, and
now VAirDraw crashes when calling operator*() on a void optional.

With this patch, we check if an optional has a value before to get its
value.
d3879a6b
History
Name Last commit Last update