antonmks / Alenka

GPU database engine
Other
1.17k stars 120 forks source link

insert select fails with buffer overflow #75

Closed Randolph42 closed 9 years ago

Randolph42 commented 10 years ago

The code: unnamed_A := FILTER nation2 BY n_nationkey == 24 ; INSERT INTO nation   SELECT  n_comment AS n_comment,n_name AS n_name,n_nationkey AS n_nationkey,n_regionkey AS n_regionkey FROM unnamed_A;

causes a buffer overflow in insert_records() calling __fread_chk()

antonmks commented 9 years ago

Should be working now :

inserts :

INSERT INTO region SELECT r_regionkey AS r_regionkey, r_name AS r_name FROM region1;

deletes:

DELETE FROM region1 WHERE r_regionkey == 5;

Randolph42 commented 9 years ago

Excellent! I will test it shortly.

Thanks R

On 13/12/14 2:45 AM, "Anton" notifications@github.com wrote:

Should be working now :

inserts :

INSERT INTO region SELECT r_regionkey AS r_regionkey, r_name AS r_name FROM region1;

deletes:

DELETE FROM region1 WHERE r_regionkey == 5;

‹ Reply to this email directly or view it on GitHub https://github.com/antonmks/Alenka/issues/75#issuecomment-66789631 .