mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Fix for overwriting of the stack when table name length was larger
than 32 bytes. getWords interpreted length as number of words and got number of bytes.
This commit is contained in:
parent
22f21ba700
commit
99f9ff912f
1 changed files with 1 additions and 1 deletions
|
@ -5660,7 +5660,7 @@ void Dbdict::execGET_TABINFOREQ(Signal* signal)
|
|||
signal->getSection(ssPtr,GetTabInfoReq::TABLE_NAME);
|
||||
SimplePropertiesSectionReader r0(ssPtr, getSectionSegmentPool());
|
||||
r0.reset(); // undo implicit first()
|
||||
if(r0.getWords((Uint32*)tableName, len))
|
||||
if(r0.getWords((Uint32*)tableName, ((len + 3)/4)))
|
||||
memcpy(keyRecord.tableName, tableName, len);
|
||||
else {
|
||||
jam();
|
||||
|
|
Loading…
Reference in a new issue