From b1836f93682b25ca8af79b9cc5ab5021c977a22a Mon Sep 17 00:00:00 2001 From: Matthew Oliver Date: Thu, 25 Jan 2024 13:17:54 +1100 Subject: [PATCH] Update malformed_example.db to actually be malformed Seems since somewhere around sqlite 3.40+ our in tests malformed sqlite db isn't malformed anymore. I don't actually know how it was malformed but looking in a hex editor it seems to have a bunch of null truncated in the middle of the file. Which maybe isn't an issue anymore? Instead I've gone and messed up what looks like to be the marker before defining the test table data at the end of file, so from: 00001FF0 00 00 00 00 00 00 00 00 00 00 00 03 01 02 0F 31 ...............1 ^^ To: 00001FF0 00 00 00 00 00 00 00 00 00 00 00 FF 01 02 0F 31 ...............1 ^^ Basically FF'ed the start of the data marker (at least what I'm calling it). Closes-Bug: #2051067 Change-Id: I2a10adffa39abbf7e97718b7228de298209140f8 --- test/unit/common/malformed_example.db | Bin 8192 -> 8192 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/test/unit/common/malformed_example.db b/test/unit/common/malformed_example.db index 7cbe1bf71690c2775f4a553b54abc89d79d528d6..995a24791a6d9025bcef2b8648aa2074a7d7a612 100644 GIT binary patch delta 13 UcmZp0XmHr@Tb}hlBNM+N043lAk^lez delta 13 UcmZp0XmHr@Tb`Afk%`|B03h@OmH+?%