[MCOL-858] VARBINARY is truncated on byte 00 Created: 2017-08-04  Updated: 2017-09-05  Resolved: 2017-09-05

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 1.1.0
Fix Version/s: 1.1.0

Type: Bug Priority: Major
Reporter: Andrew Hutchings (Inactive) Assignee: Daniel Lee (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Sprint: 2017-15, 2017-16, 2017-17, 2017-18

 Description   

VARBINARY regression in 1.1, data with NUL bytes is truncated. Found in execution of test012.



 Comments   
Comment by Andrew Hutchings (Inactive) [ 2017-08-04 ]

I think this was caused by my fix for MCOL-838. Using the c_str() only copies up to the NUL terminator when deserializing

Comment by Andrew Hutchings (Inactive) [ 2017-08-07 ]

Pull request for 1.1

For QA: this fixes test012.

Comment by David Hall (Inactive) [ 2017-08-09 ]

Test012 and test112 are working on my test now.

Comment by Daniel Lee (Inactive) [ 2017-09-05 ]

Build verified: 1.1.0 Github source

/root/columnstore/mariadb-columnstore-server
commit 9e855a6415e0edd6771c449a6591c21c3915bfec
Merge: 6ed33d1 c206e51
Author: David.Hall <david.hall@mariadb.com>
Date: Tue Sep 5 09:43:29 2017 -0500

/root/columnstore/mariadb-columnstore-server/mariadb-columnstore-engine
commit 90353b9b908e1c9ee241c4a156a2a377c53cc807
Author: david hill <david.hill@mariadb.com>
Date: Fri Sep 1 14:46:07 2017 -0500

Generated at Thu Feb 08 02:24:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.