9prady9 · GitHub

@9prady9

@9prady9

@9prady9 9prady9 changed the title Nullify move-from resource of array_proxy objects Fix af::array::array_proxy move assignment operator

Apr 2, 2019

Merged

move assignment operator of array_proxy wasn't doing couple of
things correctly.
* releasing existing
* nullifying the move-from objects pointer
This resulted in double-free

@9prady9

@9prady9

@9prady9

@9prady9

9prady9 deleted the fix_array_proxy_bug branch

April 8, 2019 16:36

9prady9 added a commit to 9prady9/arrayfire that referenced this pull request

Apr 8, 2019
* Fix af::array::array_proxy move assignment operator
move assignment operator of array_proxy wasn't doing couple of
things correctly.
* releasing existing
* nullifying the move-from objects pointer
This resulted in double-free
* Unit test for double-free issue of proxy &&= operator
* Minor changes to array death test & windows fixes
(cherry picked from commit  1936937 )

umar456 pushed a commit to 9prady9/arrayfire that referenced this pull request

Apr 17, 2019
* Fix af::array::array_proxy move assignment operator
move assignment operator of array_proxy wasn't doing couple of
things correctly.
* releasing existing
* nullifying the move-from objects pointer
This resulted in double-free
* Unit test for double-free issue of proxy &&= operator
* Minor changes to array death test & windows fixes
(cherry picked from commit  1936937 )

umar456 pushed a commit to 9prady9/arrayfire that referenced this pull request

Apr 17, 2019
* Fix af::array::array_proxy move assignment operator
move assignment operator of array_proxy wasn't doing couple of
things correctly.
* releasing existing
* nullifying the move-from objects pointer
This resulted in double-free
* Unit test for double-free issue of proxy &&= operator
* Minor changes to array death test & windows fixes
(cherry picked from commit  1936937 )

umar456 pushed a commit to 9prady9/arrayfire that referenced this pull request

Apr 17, 2019
* Fix af::array::array_proxy move assignment operator
move assignment operator of array_proxy wasn't doing couple of
things correctly.
* releasing existing
* nullifying the move-from objects pointer
This resulted in double-free
* Unit test for double-free issue of proxy &&= operator
* Minor changes to array death test & windows fixes
(cherry picked from commit  1936937 )

umar456 pushed a commit that referenced this pull request

Apr 17, 2019
* Fix af::array::array_proxy move assignment operator
move assignment operator of array_proxy wasn't doing couple of
things correctly.
* releasing existing
* nullifying the move-from objects pointer
This resulted in double-free
* Unit test for double-free issue of proxy &&= operator
* Minor changes to array death test & windows fixes
(cherry picked from commit  1936937 )

Read the original on github.com ↗