[MDEV-4207] Invalid code in fts_savepoint_release() in InnoDB Created: 2013-02-26  Updated: 2013-03-28  Resolved: 2013-03-28

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.1
Fix Version/s: 10.0.2

Type: Bug Priority: Major
Reporter: Pavel Ivanov Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

There's a clearly incorrect code in storage/innobase/fts/fts0fts.cc in MariaDB 10.0.1 tarball. On line 5348 it has:

			/* Swap the entries. */
			memcpy(&temp, last, sizeof(temp));
			memcpy(last, prev, sizeof(*last));
			memcpy(prev, &temp, sizeof(prev));

The last statement doesn't copy full fts_savepoint_t struct from temp to *prev, because the last parameter should be sizeof(*prev).


Generated at Thu Feb 08 06:54:37 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.