New issue
 Projects > cpp > Issues > Bug #1382

CCBReader null pointer crash

Bug #1382 [Closed]
walzer 2012-07-03 02:18 . Updated almost 2 years ago

Reported by kagakuninja at https://github.com/cocos2d/cocos2d-x/issues/1056

CCBReader::readNodeGraphFromFile allows the pOwner parameter to be null (the default value is null, so this implies that null is a legal value for pOwner). However, CCBReader::readNodeGraphFromFile will crash when attempting to call pOwner->retain. If null is not a legal value, the default param value should be removed.

zhangxm 2012-08-20 07:52
  • Assignee set to zhangxm
zhangxm 2012-08-21 03:41
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:a41f03b998bcf28eb6e282bc6f9d228d81005ad8.

zhangxm 2012-08-21 03:41

Applied in changeset commit:8f6b6448b1a6135512b17db7badedf369914519d.

zhangxm 2012-08-23 07:36
  • Status changed from Resolved to Closed

Atom PDF

Status:Closed
Start date:2012-07-03
Priority:Normal
Due date:
Assignee:zhangxm
% Done:

100%

Category:all
Target version:cocos2d-2.0-x-2.0.2

Copyright © 2010 - 2014 Cocos2d-x.orgClustrmaps Support Email: support@cocos.org