Skip to content

Releases: KindleModding/Hotfix

v2.3.2

23 Oct 08:06

Choose a tag to compare

Fix sh_integration hook-related crashes

v2.3.1

22 Oct 10:02

Choose a tag to compare

Hotfix v2.3.1 fixes a bug in sh_integration which manifested as scriptlets not appearing and constant crahs dumps.
I appologise for the inconvenience

Technical Info

  • When a scriptlet is passed to the sh_integration extractor to index, the header must be read
  • Reading the header happens in code similar to such:
buffer[0] = '\0';
int lineLength = 0;
char c;
while ((c = fgetc(file)) != EOF)
{
    if (c == '\n' || c == '\r')
    {
        break;
    }

    if (lineLength + 2 >= bufferSize)
    {
        buffer = realloc(buffer, bufferSize+=(lineLength + 2));
        if (buffer == NULL)
        {
            printf("FATAL - FAILED TO REALLOC BUFFER!!!\n");
            return; //@TODO: We don't really have a good way of dealing with this
        }
    }

    buffer[lineLength++] = c;
}
buffer[lineLength] = '\0';
  • This code was also wrapped to terminate after 6 lines
  • Unfortunately, using char c is incorrect, as that causes the EOF comparison to fail
  • As a result of this, the extractor will continue to reallocate until it OOMs and crashes the scanner, leading to the symptom of a scriptlet not appearing
  • This was switched to int c which fixed the bug

The crash dumps

  • It is still unknown why the sh_integration syslog function was causing constant scanner crashes
  • It has been removed in v2.3.1 for this reason

Why didn't tests catch this?

  • Unknown, neither of these issues happened on my laptop for some reason
  • Let me know if you do know though

v2.3.0

22 Oct 08:18

Choose a tag to compare

  • Fixes sh_integration (FINALLY)

v2.2.5c

21 Oct 20:40

Choose a tag to compare

Too lazy to bump version, fixes ;kmclog

v2.2.5b

21 Oct 10:05

Choose a tag to compare

We implemented moar logging + sh_integration update again maybe this time it works idk

We added a brand new ;kmclog command - use it when reporting errors

v2.2.4

30 Sep 20:49

Choose a tag to compare

  • Update sh_integration version (eliminates OOB writes and memory leaks)

v2.2.3

18 Sep 07:12

Choose a tag to compare

  • Fix Amazon changing chattr to chattr.e2fsprogs on certain newer devices and firmwares.

v2.2.2a

31 Aug 21:41

Choose a tag to compare

  • Update sh_integration
  • Add missing CS serials

v2.2.1

23 Jul 11:43

Choose a tag to compare

Fix awk segfaulting on some Kindles

v2.2.0

21 Apr 17:49

Choose a tag to compare

Changelog

The storage free check is now more accurate - we now take into account the fact that the old hotfix is getting deleted