• Alexey Botchkov's avatar
    TODO-424 geometry query crashes server. · 7fb55ee8
    Alexey Botchkov authored
            The bug was found by Alyssa Milburn.
            If the number of points of a geometry feature read from
            binary representation is greater than 0x10000000, then
            the (uint32) (num_points * 16) will cut the higher byte,
            which leads to various errors.
            Fixed by additional check if (num_points > max_n_points).
    7fb55ee8
spatial.h 17.3 KB