Hello

Op di 22-07-2003, om 20:23 schreef Thomas Schuerger:
> Hi,
> 
> I just tracked down the SIGSEGV/SIGBUS bug on my system: the following happens
> on my system in gwcache.c (watch the stacktrace):
<snip>
> As can be seen from the sourcecode, fpvec[2] is not valid when
> USE_SOURCE_DIR_AS_FALLBACK is set (two lines are swapped).
> 
> 
> The following simple patch fixes that problem:
> 
> 
> Index: gwcache.c
> ===================================================================
> RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/gwcache.c,v
> retrieving revision 1.38
> diff -c -r1.38 gwcache.c
> *** gwcache.c   18 Jul 2003 05:07:45 -0000      1.38
> --- gwcache.c   22 Jul 2003 18:14:12 -0000
> ***************
> *** 258,266 ****
>         gint line;
>         FILE *in;
>   #ifdef USE_SOURCE_DIR_AS_FALLBACK
> -       file_path_t fpvec[2];
> - #else
>         file_path_t fpvec[3];
>   #endif
>         gchar tmp[1024];
>   
> --- 258,266 ----
>         gint line;
>         FILE *in;
>   #ifdef USE_SOURCE_DIR_AS_FALLBACK
>         file_path_t fpvec[3];
> + #else
> +       file_path_t fpvec[2];
>   #endif
>         gchar tmp[1024];
>   
> 
> Greetings,
> Thomas.

Fix is now in CVS.

-- 
Jeroen Asselman <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Dit berichtdeel is digitaal ondertekend

Reply via email to