<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.2">
</HEAD>
<BODY>
I was having issues with hobbitfetch core dumping.<BR>
I finally figured out the issue.<BR>
<BR>
In the "grabdata" function there is:<BR>
int n;<BR>
char buf[8192];<BR>
<BR>
/* Read data from a peer connection (client or server) */<BR>
n = read(conn->sockfd, buf, sizeof(buf));<BR>
...<BR>
else if (n > 0) {<BR>
...<BR>
buf[n] = '\0';<BR>
...<BR>
<BR>
If 8192 bytes are read then "n" is 8192.  There is no element 8192 in buf.  buf is 0-8191.<BR>
<BR>
<BR>
</BODY>
</HTML>