df7cb / pg_filedump

pg_filedump provides facilities for low-level examination of PostgreSQL tables and indexes
43 stars 18 forks source link

several bugs in program #22

Closed andreyvatoropinit closed 10 months ago

andreyvatoropinit commented 11 months ago

in file decode.c we may see next string: result = parse_value(buffer + 1, len - 1); Address of buffer for example 0000. And after action + 1 we have address 0001. It means that the address not divisible by four. And during run time we have misaligned error. it is happened because some kind of CPU may read address which divisible by four

in same file decode.c we have string: num = (struct NumericData) buffer; sizeof NumericData equal 4. sometime sizeof buffer equal 6.

and we try to put 6 bytes to buffer with size 4 bytes - it is run time error. please fix it.

andreyvatoropinit commented 10 months ago

copied this: https://github.com/df7cb/pg_filedump/issues/23

andreyvatoropinit commented 10 months ago

https://github.com/df7cb/pg_filedump/issues/23