Fix overflow of nbatch

Поиск
Список
Период
Сортировка
От Vaibhav Jain
Тема Fix overflow of nbatch
Дата
Msg-id CABa-Az174YvfFq7rLS+VNKaQyg7inA2exvPWmPWqnEn6Ditr_Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix overflow of nbatch
Re: Fix overflow of nbatch
Список pgsql-hackers
Hi Everyone,

With a1b4f28, to compute current_space, nbatch is being multiplied
by BLCKSZ. nbatch is int and when multiplied with BLCKSZ, it can
easily overflow the int limit.To keep the calculation safe for
current_space, convert nbatch to size_t.

Please find a patch for the same.

Thanks,
Vaibhav
Вложения

В списке pgsql-hackers по дате отправления: