Re: BUG #16953: OOB access while converting "interval" to char
В списке pgsql-bugs по дате отправления:
| От | Julien Rouhaud |
|---|---|
| Тема | Re: BUG #16953: OOB access while converting "interval" to char |
| Дата | |
| Msg-id | 20210412031302.tquch5rg5j3eiut3@nol обсуждение исходный текст |
| Ответ на | Re: BUG #16953: OOB access while converting "interval" to char (Michael Paquier <michael@paquier.xyz>) |
| Список | pgsql-bugs |
On Mon, Apr 12, 2021 at 12:04:23PM +0900, Michael Paquier wrote: > On Fri, Apr 09, 2021 at 07:58:51PM +0900, Michael Paquier wrote: > > Yep. The regression tests show what I would expect. I'll check in > > details later. > > I have spent some time on that today and applied this patch down to > 9.6, after adding more comments and simplifying a bit the calculation > method used. Instead of using the "mon" variable to store an > intermediate result, I have simplified things so as this only uses > tm->tm_mon, and "mon" for the position in the roman-numeral array is > adjusted only once. Thanks Michael! I thought we'd want to keep the original calculation for consistency, but directly computing the needed offset is clearly simpler to read!
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера