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 over 8 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.

walzer@cocos2d-x.org 2014-10-08 02:58

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

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8231

Atom PDF

Status:Closed
Start date:2013-10-17
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:all
Target version:-