Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuo committed Jul 1, 2014
1 parent 62b1df6 commit 1defc41
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2014-06-30 Shuo Chen <[email protected]>
* Fix boundary check in Buffer::findEOL() by <renxingsong>.
* Fix typos in InetAddress.cc by <huangml.zh>.
* Fix 32-bit integer overflow bug in time_client by <guochy2012>.
* Update comments in Buffer::readFd() by <huahang>.
* Add ThreadPool::setThreadInitCallback().
* Rename GzipStream to ZlibStream.
* Version 1.0.2

2014-04-10 Shuo Chen <[email protected]>
* More ProcessInfo functions.
* Add GzipFile (in C++11 only) and GzipOutputStream.
Expand Down
2 changes: 2 additions & 0 deletions muduo/net/Buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Buffer : public muduo::copyable

const char* findCRLF() const
{
// FIXME: replace with memmem()?
const char* crlf = std::search(peek(), beginWrite(), kCRLF, kCRLF+2);
return crlf == beginWrite() ? NULL : crlf;
}
Expand All @@ -87,6 +88,7 @@ class Buffer : public muduo::copyable
{
assert(peek() <= start);
assert(start <= beginWrite());
// FIXME: replace with memmem()?
const char* crlf = std::search(start, beginWrite(), kCRLF, kCRLF+2);
return crlf == beginWrite() ? NULL : crlf;
}
Expand Down

0 comments on commit 1defc41

Please sign in to comment.