pgsql: pageinspect: Add more sanity checks to prevent out-of-bound read

2022-03-27 Thread Michael Paquier
pageinspect: Add more sanity checks to prevent out-of-bound reads A couple of code paths use the special area on the page passed by the function caller, expecting to find some data in it. However, feeding an incorrect page can lead to out-of-bound reads when trying to access the page special area

pgsql: pageinspect: Add more sanity checks to prevent out-of-bound read

2022-03-27 Thread Michael Paquier
pageinspect: Add more sanity checks to prevent out-of-bound reads A couple of code paths use the special area on the page passed by the function caller, expecting to find some data in it. However, feeding an incorrect page can lead to out-of-bound reads when trying to access the page special area

pgsql: pageinspect: Add more sanity checks to prevent out-of-bound read

2022-03-27 Thread Michael Paquier
pageinspect: Add more sanity checks to prevent out-of-bound reads A couple of code paths use the special area on the page passed by the function caller, expecting to find some data in it. However, feeding an incorrect page can lead to out-of-bound reads when trying to access the page special area

pgsql: pageinspect: Add more sanity checks to prevent out-of-bound read

2022-03-27 Thread Michael Paquier
pageinspect: Add more sanity checks to prevent out-of-bound reads A couple of code paths use the special area on the page passed by the function caller, expecting to find some data in it. However, feeding an incorrect page can lead to out-of-bound reads when trying to access the page special area

pgsql: pageinspect: Add more sanity checks to prevent out-of-bound read

2022-03-27 Thread Michael Paquier
pageinspect: Add more sanity checks to prevent out-of-bound reads A couple of code paths use the special area on the page passed by the function caller, expecting to find some data in it. However, feeding an incorrect page can lead to out-of-bound reads when trying to access the page special area

pgsql: pageinspect: Add more sanity checks to prevent out-of-bound read

2022-03-27 Thread Michael Paquier
pageinspect: Add more sanity checks to prevent out-of-bound reads A couple of code paths use the special area on the page passed by the function caller, expecting to find some data in it. However, feeding an incorrect page can lead to out-of-bound reads when trying to access the page special area