﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
397	Regression in sh_static.c	rainer	rainer	"The changes for version 4 in sh_static.c led to a regression when samhain is compiled with '--enable-static' (reported by amaiket).

{{{
   993  static int __length_dotted(const unsigned char *data, int offset)
   994  {
   995          int orig_offset = offset;
   996          int l;
   997
   998          if (!data)
   999                  return -1;
  1000
  1001          while ((l = data[offset])) {
  1002
  1003                  if (offset < INT_MAX)
  1004                          offset++;
  1005                  else
  1006                          return -1;
}}}

Originally it was 
{{{
                while ((l = data[offset])) { 
}}}
so the new code doesn't increment offset if it breaks out of the while loop.
"	defect	closed	major	4.1.3	main	4.0.0	fixed		
