Bug #1382

CCBReader null pointer crash

Added by Zhe Wang 11 months ago. Updated 9 months ago.

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

100%

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

Description

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.

History

Updated by Minggo Zhang 9 months ago

  • Assignee set to Minggo Zhang

Updated by Minggo Zhang 9 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:a41f03b998bcf28eb6e282bc6f9d228d81005ad8.

Updated by Minggo Zhang 9 months ago

Applied in changeset commit:8f6b6448b1a6135512b17db7badedf369914519d.

Updated by Minggo Zhang 9 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF