Skip to content

Commit c5ece39

Browse files
Martin SköldMartin Sköld
authored andcommitted
Bug#33162098 DISK_RESTART_UNDO data size
Added checks that signal data for DISK_RESTART_UNDO fits into buffer. Approved by: Frazer Clement <[email protected]>
1 parent 5f13791 commit c5ece39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/ndb/src/kernel/blocks/dbtup/DbtupGen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License, version 2.0,
@@ -346,6 +346,7 @@ void Dbtup::execCONTINUEB(Signal* signal)
346346
ndbrequire(handle.m_cnt == 1);
347347
SegmentedSectionPtr ssptr;
348348
handle.getSection(ssptr, 0);
349+
ndbrequire(ssptr.sz <= NDB_ARRAY_SIZE(c_proxy_undo_data));
349350
::copy(c_proxy_undo_data, ssptr);
350351
releaseSections(handle);
351352
disk_restart_undo(signal, lsn, type, c_proxy_undo_data, len);

0 commit comments

Comments
 (0)