Browse Source

* fixed endless loop/memory corruption in filter calculation for mariadb driver

master
bergmann 5 years ago
parent
commit
15c3cd8482
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      include/cpphibernate/driver/mariadb/schema/filter.inl

+ 5
- 2
include/cpphibernate/driver/mariadb/schema/filter.inl View File

@@ -95,15 +95,18 @@ beg_namespace_cpphibernate_driver_mariadb
auto it = tables.begin();
while (it != tables.end())
{
bool removed = false;
for (auto& field : (*it)->fields)
{
if (fields.count(field.get()))
{
it = tables.erase(it);
continue;
removed = true;
break;
}
}
++it;
if (!removed)
++it;
}
}



Loading…
Cancel
Save