DescriptionUse safe arithmentic in CFX_BinaryBuf::ExpandBuf.
Always call ExpandBuf(), and if it returns, we know the
subsequent calculations won't overflow.
Also use std::unique_ptr, and fix unintentional copies thus
detected by its suppressed copy ctor in fsdk_baseform.cpp
Also Remove unused CFX_BinaryBuf::TakeOver(), AppendFill(), CopyData().
Also remove operator= in favor of using <<, for similarity
with std::ostream and friends.
Also move ByteStringC methods to CFX_ByteTextBuf sub-class.
Also re-order members, may pack tighter on 64-bits.
R=thestig@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/78353d5dbc0b0c9b2d6946005439a51efa7d108c
Patch Set 1 #Patch Set 2 : Move string methods to subclass. #Patch Set 3 : Reorder members. #Patch Set 4 : Add comments about ownership #Patch Set 5 : Use result. #Patch Set 6 : Unique_ptr, safe arithmetic. #
Total comments: 4
Patch Set 7 : needless uint8_t casts. #
Messages
Total messages: 11 (6 generated)
|