bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] Bug#206785: indent segfaults on the attached file (fwd)


From: Santiago Vila
Subject: [Bug-indent] Bug#206785: indent segfaults on the attached file (fwd)
Date: Sat, 23 Aug 2003 13:55:15 +0200 (CEST)

Hello.

I received the following report from the Debian bug system:

---------- Forwarded message ----------
From: Mohammed Sameer <address@hidden>
To: Debian Bug Tracking System <address@hidden>
Date: Sat, 23 Aug 2003 00:12:28 +0300
Subject: Bug#206785: indent segfaults on the attached file

Package: indent
Version: 2.2.7-2
Severity: important

$ indent print.c
Segmentation fault

---------- End Forwarded message ------

The bug reproduces with indent 2.2.9 as well. I've simplified the
example provided by the submitter to this very simple test case:

int main() {
  printf(_("aaaaaaaaaaaaaaaaaaaaaaaaaa));
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
  printf(":");
}

I know this code is incorrect, but in either case, indent should never
segfault. It should give an error message instead.

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]