Code review comment for lp:~akopytov/percona-server/bug878404-5.5

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

(Found this while reviewing 5.1)

What is the largest supported size of DYNAMIC_ARRAY? The elements and max_element fields are ulong instead of uint. But get_index_dynamic returns signed int (now long), so if size_of_element == 1, get_index_dynamic will not work correctly for element indexes > LONG_MAX. size_t is able to hold the value of ret, but int/long not necessarily so.

review: Needs Information

« Back to merge proposal