Validation could read after the end-of-file when handle multifile database --------------------------------------------------------------------------
Key: CORE-5295 URL: http://tracker.firebirdsql.org/browse/CORE-5295 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 3.0.0, 4.0 Initial Reporter: Vlad Khorsun Priority: Minor If multifile database have some (non-last) file with size less than maximum allowed for this file, engine could attempt to read after the end of such file. Corresponding code is called by validation only. Database is not corrupted. Test case a) make backup gbak -b EMPLOYEE.FDB EMPLOYEE.FBK b) restore it into multifile database, make first file big enougth to fit whole database gbak -r -v EMPLOYEE.FBK EMPLOYEE-1.FDB 100000 EMPLOYEE-2.FDB gbak:opened file EMPLOYEE.FBK gbak:transportable backup -- data in XDR format gbak: backup file is compressed gbak:backup version is 10 gbak:created database EMPLOYEE-1.FDB, page_size 8192 bytes gbak:started transaction gbak:adding file EMPLOYEE-2.FDB, starting at page 100001 gbak:committing secondary files ... gbak:finishing, closing, and going home gbak:adjusting the ONLINE and FORCED WRITES flags c) validate restored database gfix -v EMPLOYEE-1.FDB I/O error during "ReadFile" operation for file "EMPLOYEE-1.FDB" -Error while trying to read from file -Reached the end of file -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel