Skip to content

Commit

Permalink
Fixed bug in length check for unpacking strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van der Heijden committed Sep 8, 2017
1 parent ef392ae commit 774205f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
libqpack (0.10.6)

* Fixed bug in length check for unpacking strings.

-- Jeroen van der Heijden <jeroen@transceptor.technology> 08 Sep 2017

libqpack (0.10.5)

* Inline functions for checks and fixed compile warnings.
Expand Down
2 changes: 1 addition & 1 deletion qpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ if (packer->len + LEN > packer->buffer_size) \
{ \
QP_UNPACK_CHECK_SZ(sizeof(uintx_t)) \
size_t sz = (size_t) *((uintx_t *) unpacker->pt); \
QP_UNPACK_CHECK_SZ(sz) \
unpacker->pt += sizeof(uintx_t); \
QP_UNPACK_CHECK_SZ(sz) \
if (qp_obj != NULL) \
{ \
qp_obj->tp = QP_RAW; \
Expand Down
2 changes: 1 addition & 1 deletion qpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#define QP_VERSION_MAJOR 0
#define QP_VERSION_MINOR 10
#define QP_VERSION_PATCH 5
#define QP_VERSION_PATCH 6

#define QP_STRINGIFY(num) #num
#define QP_VERSION_STR(major,minor,patch) \
Expand Down

0 comments on commit 774205f

Please sign in to comment.