Created by Wim Lewis on 2013-02-28 and last modified on 2013-03-12
Get this branch:
bzr branch lp:~wiml/libdrizzle/integer-sizes
Only Wim Lewis can upload to this branch. If you are Wim Lewis please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Wim Lewis
Drizzle Client & Protocol Library

Recent revisions

121. By Wim Lewis on 2013-03-12

Avoid a gratuitous cast to uint64_t and back.

120. By Wim Lewis on 2013-03-12

The protocol allows fields as large as 2^64 bytes, so use a uint64_t to store field sizes and offsets within fields. Added some documentation for drizzle_field_read() and drizzle_field_buffer().

119. By Wim Lewis on 2013-03-12

It's possible to have more than 1024 (256*8) columns, so null_bitmap_length has to be larger than a uint8_t.

118. By Wim Lewis on 2013-03-11

The amount of data in param->data can technically be more than 2^32; it's limited by the size of our memory, so param->length should be a size_t.

117. By Wim Lewis on 2013-03-11

Avoid an unnecessary type cast to size_t.
Avoid a use-after-free of row_list if we have a realloc failure while reading a large result set.

116. By Wim Lewis on 2013-03-11

Avoid dereferencing pointers we know are NULL.

115. By Wim Lewis on 2013-03-11

Fixed a pair of typos in error messages.

114. By Wim Lewis on 2013-03-07

Fix fragmentary-field-reading logic in drizzle_state_field_read()
so that it doesn't accidentally cross a packet boundary.
Adjusted types of some field variables to match the largest values that
can be stored in them.

113. By Wim Lewis on 2013-03-06

Cast the result of crc32() to uint32_t.
zlib.h declares it as uLong, which is 64 bits on some machines.

112. By Wim Lewis on 2013-03-06

drizzle_unpack_string() integer-width safety.
The size of a buffer in our memory space is a 'size_t'.
Fail if the string extends past the limits of the buffer we're reading it from (should only happen if there's a protocol error).

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.