Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
puritys committed Nov 25, 2015
1 parent 0014e86 commit 3c49f21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/mysql/packetReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ o.readFieldsValue = function () {
var res = [], buf, strStart = 0, strEnd = 0, strLength = 0;
while (1) {
strLength = this.readLengthEncodedInteger();
if (!strLength) return res;
strStart = this.index;
strEnd = strStart + strLength;
if (strEnd > this.length) return res;
Expand Down

0 comments on commit 3c49f21

Please sign in to comment.