Displaying 20 results from an estimated 2000 matches similar to: "tinc 1.1: freeaddrinfo(NULL) crash on windows"
2018 Feb 16
2
tinc 1.1: freeaddrinfo(NULL) crash on windows
On Mon, 22 Jan 2018 18:08:22 +0100, Guus Sliepen wrote:
> Thanks for reporting this bug! Indeed, that code is wrong. It should
> free cache->ai instead of cache->aip. Even if it didn't crash on Linux,
> it was a memory leak. A fix is now in the git repository.
The fix leads to a use after free bug which is visible on macOS.
It doesn't seem to be much of a problem on most
2018 Jan 22
0
tinc 1.1: freeaddrinfo(NULL) crash on windows
On Mon, Jan 22, 2018 at 09:51:33AM -0700, Todd C. Miller wrote:
> On Windows, freeaddrinfo(NULL) will result in a segv. In
> get_recent_address(), there is the following block of code:
>
> if(cache->aip) {
> sockaddr_t *sa = (sockaddr_t *)cache->aip->ai_addr;
> cache->aip = cache->aip->ai_next;
>
>
2018 Feb 17
0
tinc 1.1: freeaddrinfo(NULL) crash on windows
On Fri, Feb 16, 2018 at 02:26:36PM -0700, Todd C. Miller wrote:
> > Thanks for reporting this bug! Indeed, that code is wrong. It should
> > free cache->ai instead of cache->aip. Even if it didn't crash on Linux,
> > it was a memory leak. A fix is now in the git repository.
>
> The fix leads to a use after free bug which is visible on macOS.
> It doesn't
2011 Aug 05
4
[Bug 8355] New: Use pointer after freeaddrinfo()
https://bugzilla.samba.org/show_bug.cgi?id=8355
Summary: Use pointer after freeaddrinfo()
Product: rsync
Version: 3.0.8
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: andrey at zonov.org
2018 Feb 21
1
tinc 1.1: freeaddrinfo(NULL) crash on windows
Unfortunately, my fix exposed a problem in reset_address_cache()
could call free_known_addresses() on a struct addrinfo * that was
returned by getaddrinfo(). This results in heap corruption on
Windows (and a crash).
It seems safest to just make a copy of the addresses returned by
getaddrinfo() so it can always use free_known_addresses() instead
of trying to determine whether or not we need to
2003 May 18
1
OpenSSH -current segfaults on HP-UX+gcc
Hi All.
As of last night, sshd now segfaults on HP-UX (11.00, gcc 3.2.2) on
startup.
I've single-stepped through the code in freeaddrinfo and it's called with
a valid *addrinfo, follows ai_next once then for some reason attempts to
deref the second pointer which is NULL.
Suspecting a compiler/optimization bug I recompiled fake-getaddrinfo.c
without optimization but that made no
2003 Jul 15
2
Windows 98 logon server problem
Hi,
I have Samba version 2.2.7 up and running as a PDC for several
Windows 2000/XP clients, as well as file sharing working. However, when
I try to use it as a Win9X logon server, I can not seem to make it work.
Whenever I try to logon from the Win98 computer, I get the error
message "Incorrect Parameter" (in windows) and get the following message
in the nmbd.log file:
=-=-=
2017 Mar 06
2
Suspicious code in net_socket.c
Good afternoon!
Module - net_socket.c
Function - get_known_addresses
---------------------------------------------------
struct addrinfo *nai = xzalloc(sizeof *nai);
if(ai)
ai->ai_next = nai;
ai = nai;
--------------------------------------------------
For my opinion, possible causes:
1. Lost trails (ai_next)
2. ai_next not initialized
3. Possible segfault during
2015 Dec 10
2
[PATCH] Receive multiple packets at a time
Hello,
Guus Sliepen, on Wed 02 Dec 2015 13:53:37 +0100, wrote:
> That's great! It would be good though to split
> handle_incoming_vpn_data() into a function that does the actual
> recvfrom/mmsg() and one that processes each individual packet, to reduce
> the level of indentation and make the functions a bit more readable.
> Then I'll merge it :)
Here it is.
Samuel
2003 Jun 13
1
Workgroup/Domain Browsing
I am currently running samba on a Redhat 8.0 server, and it is working great. Keep up the good work guys!
My question involves a VPN connection to the server on a different network segment. I have the following setup:
Internal Network - 192.168.13.0/24
|
|
Red Hat Samba Server - 192.168.13.3 - aip-ky
|
VPN
|
2002 Jan 11
1
rsync 2.5.1 server - strange logs
I've just upgraded my rsync server to 2.5.1 (before, I was using 2.4.6),
without changing anything in /etc/rsyncd.conf, and now, I have this logs
each time a client connect to server:
2002/01/07 18:33:03 [10432] rsync: reverse name lookup mismatch on fd3 - spoofed address?
2002/01/07 18:33:03 [10432] rsync on admin/sbin/padmin_update.sh from UNKNOWN (172.16.65.14)
2002/01/07 18:33:03 [10432]
2006 Oct 10
3
eps embedded fonts again
Dear friends,
I am sorry, I again rise that boring question about font embedding in
EPS figure.
I found some discussions on this topic but there were no strait solution.
The publisher (AIP) demands submission of separate EPS file
for each figure with all fonts embedded in it (even the standard
14 Adobe fonts).
As I understand the R does not do this embedding. It inserts only
comments what font
2014 Jun 23
2
ListenAdress Exclusion
I was wondering what everyone's thoughts were on a simpler way to exclude
addresses from having listeners on them.
I know a lot of people have multiple subnets, especially larger
corporations.
Some networks are non-route-able, and therefor unsuitable for use with SSH,
aside from communication between other servers on the same subnet.
Given that we may want to exclude those non-route-able
2003 Mar 05
0
"rsync --daemon" and IPv4/v6 dual stack
on systems that has separate IPv4/v6 socket layer (i.e. IPv4 packet
does not get routed to AF_INET6 socket) rsync --daemon would accept
IPv6 sessions only. open_socket_in() tries to deal with the
situation, but it was not enough. here's the patch.
(it is required on all *BSDs to accept both IPv4 and IPv6 connections
with --daemon mode)
itojun
---
? configure.lineno
? lib/dummy
2006 Feb 20
1
Improved diagnostics patch
Hi, all --
Here's a small patch that gives better diagnostics on the daemon side if it
fails to start up due to inability to create or bind the socket.
Presently, it gives a log entry indicating that no sockets could be bound,
but crucially does *not* have the system error message (i.e. errno) from
the failed call, making it difficult or impossible to determine the
problem.
I do have a
2007 Jan 23
2
Re: [nut-commits] svn commit r731
Hi Arjen,
in server/upsd.c r731, you moved the call conf_load() from after
check_perms() (~ l.1020) to before setupsignals() (~ l.989).
The problem is that conf_load() needs to open the ups driver socket,
and it assumes that STATEPATH is the current working directory. The
directory is only set in l.1016. Therefore, the first attempt to open
a socket will always fail. From the user's point of
2015 Dec 02
5
[PATCH] Receive multiple packets at a time
Hello,
Linux has a recvmmsg() system call which allows to achieve several
recvfrom() at a time. The patch below makes tinc use it (patch against
1.1-pre11). Basically the patch turns the handle_incoming_vpn_data
variables into arrays (of size 1 when recvmmsg is not available, and
thus compiled the same as before), and makes the code index into the
arrays. You may want to use interdiff -w
2012 Jul 06
8
[Bug 51798] New: Cannot enable second video card on nvidia quadro NVS420
https://bugs.freedesktop.org/show_bug.cgi?id=51798
Bug #: 51798
Summary: Cannot enable second video card on nvidia quadro
NVS420
Classification: Unclassified
Product: xorg
Version: 7.7 (2011)
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: major
Priority:
2004 Apr 01
1
[patch] net/rsync: problems in client name lookup code
>Submitter-Id: current-users
>Originator: Alex Vasylenko
>Organization:
>Confidential: no
>Synopsis: [patch] net/rsync: problems in client name lookup code
>Severity: non-critical
>Priority: low
>Category: ports
>Class: sw-bug
>Release: FreeBSD 4.8-RELEASE-p16 i386
>Environment:
System: FreeBSD 4.8-RELEASE-p16
>Description:
rsync does reverse name
2011 Jul 12
1
use-after-free in open_socket_out
Since 3.0.8 (the same in 3.1) we have this around line 300 in socket.c:
break;
}
freeaddrinfo(res0);
if (s < 0) {
char buf[2048];
for (res = res0, j = 0; res; res = res->ai_next, j++) {
if (errnos[j] == 0)
continue;
if (inet_ntop(res->ai_family, res->ai_addr->sa_data + 2, buf, sizeof buf) == NULL)