[Issue #591] Attempts to fix crash caused by incorrect calculation of range when reading data into buffer.

When the current buffer isn't large enough to store the data,
AFNetworking attempts to fill the current buffer with as much data as
it can holds and leaves the remaining data to the next buffer.

There is a bug when calculating the range to read from data in the next
buffer. The `_phaseReadOffset` is set correctly but the `[data length]`
is not adjusting correctly to the offset. This causes `getBytes:range:`
to complains that it attempts to get bytes that are out of range.

An attempted fix is done here by adjusting the range (Also adjust to
check against `_phaseReadOffset` instead of `range.length`.

As I am modifying some critical section, a detail review might be
required.

I am sending this pull request so as to facilitiate the review process,
but if you are already in review of the issue and the solution, you can
ignore my pull and close it. Thanks!

Detail explanation of how the solution come about can be found here:
https://github.com/AFNetworking/AFNetworking/issues/591#issuecomment-993
0763
Merge pull request #618 from lxcid/master

[Issue #591] Attempts to fix crash caused by incorrect calculation of range when reading data into buffer.
Merge pull request #617 from tewha/master

Document change in CHANGES
Update CHANGES
Adding release notes for 1.0.1
[Issue #619] Sorting dictionary keys with caseInsensitiveCompare to ensure deterministic ordering of query string parameters, which may otherwise cause ambiguous representations of nested parameters
Adding chanelog item for 5b32b45
[#624] Moved __unused keywords for better Xcode indexing.
Merge pull request #627 from apoltix/master

[Issue #624] Moved __unused keywords for better Xcode indexing
Update CHANGES
Derive keys string representations using the description method as specified in AFQueryStringFromParametersWithEncoding documentation
Merge pull request #629 from 0xced/field-escaping-description

Derive keys string representations using the description method
Removing quotes for #warning macros
Distinguisging between CoreServices and MobileCoreServices for #warning
Indenting macro conditionals
Merge branch 'master' of github.com:AFNetworking/AFNetworking
Using addOperations:waitUntilFinished: instead of adding each operation individually in -enqueueBatchOfHTTPRequestOperations:... to fix an edge case bug where only one of the operations in a batch will run.
[Issue #633] Manually casting scalar types in initWithCoder for AFURLConnectionOperation and AFHTTPClient
Issue: Timeout when buffer ends during ending boundry
[Issue #640] Removing documentation note about default Accept-Encoding header