Commits on Source (26)
-
Marc-André Lureau authored
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
73336e08 -
Dr. David Alan Gilbert authored
ip_stripoptions is moving data long in the same buffer; that's undefined with memcpy, use memmove. Buglink: https://bugs.launchpad.net/qemu/+bug/1878043 Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
d620bac8 -
Samuel Thibault authored
ip_stripoptions use memmove See merge request !47
a4e41a7e -
Samuel Thibault authored
For traceroute and such, we need to handle the TTL value like a router. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
5c1c9d43 -
Samuel Thibault authored
They work like icmp_send_error and icmp6_send_error but allow to specify the source IP address Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
73ed49ab -
Samuel Thibault authored
Not all icmp errors are reported as errno errors. Linux however lets us get them through a message error queue. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
7a4840a5 -
Samuel Thibault authored
sizeof() returns a size_t so the tcpiphdr / ip+tcphdr difference will be a size_t and always be >= 0, while this intended to detect the difference getting < 0. This is actually a no-op with the current code because it currently has tcpiphdr bigger than ip+tcphdr. Spotted by Coverity: CID 212435. Spotted by Coverity: CID 212440. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
e9b2bc19 -
Marc-André Lureau authored
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
39f9a363 -
Samuel Thibault authored1b0093b9
-
Stefan Weil authored
Signed-off-by: Stefan Weil <sw@weilnetz.de>
5b9ad89e -
Samuel Thibault authored
Add G_GNUC_PRINTF to local function slirp_vsnprintf See merge request !52
c4c62b0d -
Marc-André Lureau authored
.gitlab-ci: add a Coverity stage See merge request !51
2fc96332 -
Paolo Bonzini authored
Unfortunately meson subprojects do not support add_dist_script, so we cannot generate the .tarball-version file at "meson dist" time. Include the version in the meson project declaration, and use build-aux/git-version-gen only to determine SLIRP_VERSION_STRING. Instead of the dist script, we check that the version in the project declaration matches the latest tag. If they do not match it will be impossible to run "ninja dist" successfully. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
8a808aa4 -
Paolo Bonzini authored
Skip installation of devel files if compiling as a subproject, including the library if a static version is available; the parent project can force usage of the (installed) shared library using default_library=shared. An option can also be used to customize the SLIRP_VERSION_STRING and ascertain if the parent project is using the embedded version of slirp. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
0b669b5f -
osy authored
iOS does not support reading /etc/resolv.conf so we have to use libresolv Also modified build script to support building on Darwin systems.
9f82a47b -
Marc-André Lureau authored
Add DNS resolving for iOS See merge request !54
5146a4ff -
Marc-André Lureau authored
meson: support compiling as subproject See merge request !53
d61b5d71 -
Marc-André Lureau authored
Since QEMU 5.2, QEMU uses meson and handle the build itelf before it starts using libslirp as a subproject. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
c0eac03e -
Marc-André Lureau authored
Remove the QEMU-special make build-system See merge request !56
55e83caf -
Prasad J Pandit authored
While processing ARP/NCSI packets in 'arp_input' or 'ncsi_input' routines, ensure that pkt_len is large enough to accommodate the respective protocol headers, lest it should do an OOB access. Add check to avoid it. CVE-2020-29129 CVE-2020-29130 QEMU: slirp: out-of-bounds access while processing ARP/NCSI packets -> https://www.openwall.com/lists/oss-security/2020/11/27/1 Reported-by: Qiuhao Li <Qiuhao.Li@outlook.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-Id: <20201126135706.273950-1-ppandit@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2e1dcbc0 -
Samuel Thibault authored
slirp: check pkt_len before reading protocol header See merge request !57
65a22886 -
Samuel Thibault authored
udp, udp6, icmp: handle TTL value See merge request !48
20a37bd7 -
Samuel Thibault authored
Enable forwarding ICMP errors See merge request !49
f18e658f -
Giuseppe Scrivano authored
it fixes a tightloop when a packet with len==0 is received. Closes: https://github.com/rootless-containers/slirp4netns/issues/227 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-
Samuel Thibault authored
socket: consume empty packets See merge request slirp/libslirp!55
ffc0d5ae -
Marc-André Lureau authored
Makefile
deleted
100644 → 0
build-aux/meson-dist
deleted
100755 → 0
meson_options.txt
0 → 100644