• Alexey Botchkov's avatar
    MDEV-4252 geometry query crashes server. · 511b9432
    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).
    511b9432
spatial.h 15.9 KB