Skip to content

Commit

Permalink
#26 - EXT_WRITE_ROWS deserialization failure (reproducible with binlo…
Browse files Browse the repository at this point in the history
…g_row_image set to minimal)
  • Loading branch information
shyiko committed Dec 5, 2014
1 parent c30f914 commit f65a282
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ protected Serializable[] deserializeRow(long tableId, BitSet includedColumns, By
TableMapEventData tableMapEvent = tableMapEventByTableId.get(tableId);
byte[] types = tableMapEvent.getColumnTypes();
int[] metadata = tableMapEvent.getColumnMetadata();
BitSet nullColumns = inputStream.readBitSet(types.length, true);
Serializable[] result = new Serializable[numberOfBitsSet(includedColumns)];
BitSet nullColumns = inputStream.readBitSet(result.length, true);
for (int i = 0, numberOfSkippedColumns = 0; i < types.length; i++) {
int typeCode = types[i] & 0xFF, meta = metadata[i], length = 0;
if (typeCode == ColumnType.STRING.getCode() && meta > 256) {
Expand Down

0 comments on commit f65a282

Please sign in to comment.