[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug report: buffer overflow : symbol name is too long
From: |
Shigio YAMAGUCHI |
Subject: |
Re: bug report: buffer overflow : symbol name is too long |
Date: |
Thu, 15 Aug 2013 09:08:17 +0900 |
Hello,
I have put this to the TODO list.
[http://www.gnu.org/software/global/plans.html]
Thank you for the report.
On Wed, 14 Aug 2013 11:23:39 -0400
Iain Woolf <address@hidden> wrote:
> What is your environment (OS)?
> - Linux (Red Hat Enterprise Linux Server release 5.3 / kernel
> 2.6.18-128.el5PAE)
>
> Which version of GLOBAL are you using?
> - global-6.2.8 (downloaded and installed today, to see if this was
> already fixed)
>
> What did you do? (command line)
>
> > gtags -v -f problem-file .
> [Wed Aug 14 11:15:10 EDT 2013] Gtags started.
> Using default configuration.
> Using 'problem-file' as a file list.
> [Wed Aug 14 11:15:10 EDT 2013] Creating 'GTAGS' and 'GRTAGS'.
> [1] extracting tags of define_too_long.h
> Warning: symbol name is too long. (Ignored)[+3 ./define_too_long.h]
> gtags: buffer overflow. strlimcpy(dest,
> 'this_define_has_512_chars_abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890_abcdefghijklmnopq',
> 512).
> > cat problem-file
> define_too_long.h
> > cat define_too_long.h
> #define
> this_define_has_511_chars_abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890_abcdefghijklmnop
> 0
>
> #define
> this_define_has_512_chars_abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890_abcdefghijklmnopq
> 0
> >
>
> What did you expect from it?
> - I expected gtags to accept any symbol length that is supported by gcc
> (this file compiles fine).
>
> What was occurred? (as is)
> - buffer overflow in gtags. Empty GTAGS file is created.
>
> --
> Iain Woolf
>
>
> _______________________________________________
> Bug-global mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-global
--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3