marin-m / vmlinux-to-elf

A tool to recover a fully analyzable .ELF from a raw kernel, through extracting the kernel symbol table (kallsyms)
GNU General Public License v3.0
1.37k stars 131 forks source link

fix: Use raw strings for regex expressions #64

Closed maringuu closed 4 months ago

maringuu commented 4 months ago

Not annotating the strings as raw results in invalid escape sequences. Due to python shenanigans this did not actually matter in practice. But as of python3.12 this causes a SyntaxWarning and will cause an error in the future.

Reference: https://docs.python.org/3/reference/lexical_analysis.html#escape-sequences

marin-m commented 4 months ago

Thank you!