Projects > cpp > Issues > Bug #2997

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

CCHttpRequest getRequestData derefs an empty vector

Bug #2997 [Closed]
jwa_javatopia_com 2013-10-17 17:40 . Updated about 2 years ago

In CCHttpRequest getRequestData(), the internal vector<char> can be empty (zero length). When you deref on the empty vector you get a Debug assert and sometimes random crashing from memory corruption. When the vector is zero length you should return NULL instead. 2014-10-08 02:58

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to

Atom PDF

Start date:2013-10-17
Due date:
% Done:


Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.