Skip to content

fix overflow by int32 mul test=develop#16794

Merged
liupluswei merged 8 commits intoPaddlePaddle:developfrom
Aurelius84:develop
Apr 17, 2019
Merged

fix overflow by int32 mul test=develop#16794
liupluswei merged 8 commits intoPaddlePaddle:developfrom
Aurelius84:develop

Conversation

@Aurelius84
Copy link
Contributor

修复int32相乘overflow的问题

@luotao1
Copy link
Contributor

luotao1 commented Apr 15, 2019

Each commit should add test=develop to trigger the CI.

PADDLE_ENFORCE_EQ(in->lod().size(), 1UL,
"Only support one level sequence now.");

const Tensor* padding_data = nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think modify the ContextProjectFunctor API will be cleaner, update the const Tensor& padding_data parameter to const Tensor padding_data*, and inside the API, if padding_trainable is true, PADDLE_ENFORCE_NOT_NULL(padding_data)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks,API has been modified from reference to point.

Copy link
Contributor

@liupluswei liupluswei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liupluswei liupluswei merged commit c474e7d into PaddlePaddle:develop Apr 17, 2019
liupluswei added a commit that referenced this pull request Apr 17, 2019
* Security issue (#16774)

* disable memory_optimize and inpalce strategy by default, test=develop

* fix security issue
http://newicafe.baidu.com:80/issue/PaddleSec-3/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-8/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-12/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-32/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-35/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-37/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-40/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-43/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-44/show?from=page
http://newicafe.baidu.com:80/issue/PaddleSec-45/show?from=page

test=develop

* revert piece.cc, test=develop

* adjust api.cc,test=develop

* fix overflow by int32 mul test=develop (#16794)

* fix overflow by int32 mul test=develop

* fix reference nullptr

* fix codestyle test=develop

* modify to point in ContextProjectFunctor test=develop

* modify to point in ContextProjectFunctor test=develop

* modify . to -> test=develop

* test=release/1.4 cherry-pick (#16783) (#16794) (#16774)
fix security issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants