emacs-devel
[Top][All Lists]
Advanced

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

etags segfault


From: Tak Ota
Subject: etags segfault
Date: Mon, 25 Aug 2003 18:18:41 -0700 (PDT)

Without the following patch etags causes a segmentation fault.

-Tak


address@hidden /cygdrive/d/pub/emacs/emacs-21.3.50/lib-src
$ diff -c ../../pure/emacs-21.3.50/lib-src/etags.c etags.c
*** ../../pure/emacs-21.3.50/lib-src/etags.c    Tue Jul 29 07:39:03 2003
--- etags.c     Mon Aug 25 18:02:34 2003
***************
*** 3116,3122 ****
              fvdef = vignore;
              return FALSE;
            }
!         if (strneq (str+len-10, "::operator", 10))
            {
              if (*c_extp & C_AUTO) /* automatic detection of C++ */
                *c_extp = (*c_extp | C_PLPL) & ~C_AUTO;
--- 3116,3122 ----
              fvdef = vignore;
              return FALSE;
            }
!         if (len-10 > 0 && strneq (str+len-10, "::operator", 10))
            {
              if (*c_extp & C_AUTO) /* automatic detection of C++ */
                *c_extp = (*c_extp | C_PLPL) & ~C_AUTO;

address@hidden /cygdrive/d/pub/emacs/emacs-21.3.50/lib-src
$ diff -c ../../pure/emacs-21.3.50/lib-src/ChangeLog ChangeLog
*** ../../pure/emacs-21.3.50/lib-src/ChangeLog  Fri Aug 22 06:37:32 2003
--- ChangeLog   Mon Aug 25 18:15:05 2003
***************
*** 1,3 ****
--- 1,8 ----
+ 2003-08-25  Takaaki Ota  <address@hidden>
+ 
+       * etags.c (consider_token): check C++ `operator' only when the
+       token len is long enough.
+ 
  2003-08-20  Dave Love  <address@hidden>
  
        * Makefile.in: Remove obsolete references to alloca.





reply via email to

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