HomePhabricator

CBlock::WriteToDisk() properly checks ftell(3) for error return
5aa0b2382515Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

CBlock::WriteToDisk() properly checks ftell(3) for error return

Rather than storing ftell(3)'s return value -- a long -- in an
unsigned int, we store and check a properly typed temp. Then, assured a
non-negative value, we store in nBlockPosRet.

Details

Provenance
Jeff Garzik <jgarzik@exmulti.com>Authored on Apr 22 2012, 17:59
Jeff Garzik <jgarzik@redhat.com>Committed on Apr 23 2012, 18:14
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING1d8c7a9557d5: Add casts for unavoidable signed/unsigned comparisons
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff Garzik <jgarzik@redhat.com> committed rSTAGING5aa0b2382515: CBlock::WriteToDisk() properly checks ftell(3) for error return (authored by Jeff Garzik <jgarzik@exmulti.com>).Apr 23 2012, 18:14