소스 검색

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

master
bergmann 7 년 전
부모
커밋
15c3cd8482
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -2
      include/cpphibernate/driver/mariadb/schema/filter.inl

+ 5
- 2
include/cpphibernate/driver/mariadb/schema/filter.inl 파일 보기

@@ -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;
}
}



불러오는 중...
취소
저장