Re: [PATCH] Dereference null return value (NULL_RETURNS) (src/backend/commands/statscmds.c)

2022-02-13 Thread Ranier Vilela
Em ter., 25 de ago. de 2020 às 12:42, Ranier Vilela escreveu: > Hi Tom, > > Per Coverity. > > The SearchSysCache1 allows return NULL and at function AlterStatistics, > has one mistake, lack of, check of return, which enables a dereference > NULL pointer, > at function heap_modify_tuple. > >

[PATCH] Dereference null return value (NULL_RETURNS) (src/backend/commands/statscmds.c)

2020-08-25 Thread Ranier Vilela
Hi Tom, Per Coverity. The SearchSysCache1 allows return NULL and at function AlterStatistics, has one mistake, lack of, check of return, which enables a dereference NULL pointer, at function heap_modify_tuple. While there is room for improvement. Avoid calling SearchSysCache1 and table_open if