aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rpmoffset: add zstd supportRafał Mużyło2020-04-241-0/+2
| | | | | URL: https://bugs.gentoo.org/719208 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: add support for LZMA archivesMike Frysinger2012-05-171-9/+38
| | | | | | | | | | The LZMA format lacks proper magic markings (hence one of the driving forces for the new XZ format), so we have to rework things to deal with this fuzzy matching without throwing false positives. URL: https://bugs.gentoo.org/321439 Reported-by: Peter Volkov <pva@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: provide a local memmem for non-glibc systemsChristoph Junghans2012-05-171-0/+20
| | | | | | URL: https://bugs.gentoo.org/397835 Reported-by: Christoph Junghans <ottxor@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add support for xz compressed rpmsv9.0.0.4gMike Frysinger2009-11-061-10/+35
| | | | | | | | | Newer RPM distros are moving to XZ compression, so supporting that would probably be a good thing. URL: http://bugs.gentoo.org/292057 Reported-by: Rafał Mużyło <galtgendo@o2.pl> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: fix boundary bugMike Frysinger2008-09-171-1/+2
| | | | | | | | | | | | | | | | | Dmitry Karasik writes: When searching for the payload offset and not finding it in the current buffer, the code attempts to move the last (MAGIC_SIZE - 1) bytes to the beginning of the buffer. However the code for that is wrong. It reads: memmove(p, p + read_cnt - MAGIC_SIZE - 1, MAGIC_SIZE - 1); but should be: memmove(p, p + left + read_cnt - MAGIC_SIZE + 1, MAGIC_SIZE - 1); Mike Frysinger writes: The memmove() also needs to occur before left gets updated to avoid reading beyond the bounds of the p buffer and thus messing up the first adjustment. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Dmitry Karasik <dkarasik@gmail.com>
* rewrite code again to be faster and fix bug in previous commit (#235290)Mike Frysinger2008-08-291-18/+44
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Declare explicit sign for char arrayv9.0.0.1gMike Frysinger2008-08-191-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* rpmoffset: cleanup and remove size limit on cpio offsetv9.0.0.0gCyberjun2008-05-311-21/+30
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add support for rpms with bzip2 compressionphceac2008-05-311-1/+10
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* import rpm2targz-9.0 unmodifiedv9.0Mike Frysinger2008-05-311-0/+23
Signed-off-by: Mike Frysinger <vapier@gentoo.org>