gnuastro-devel
[Top][All Lists]
Advanced

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

[gnuastro-devel] [bug #48642] Buffer to copy string in setuprename is to


From: Vladimir Markelov
Subject: [gnuastro-devel] [bug #48642] Buffer to copy string in setuprename is too small
Date: Wed, 27 Jul 2016 02:24:17 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

URL:
  <http://savannah.gnu.org/bugs/?48642>

                 Summary: Buffer to copy string in setuprename is too small
                 Project: GNU Astronomy Utilities
            Submitted by: vvm
            Submitted on: Tue 26 Jul 2016 07:24:15 PM PDT
                Category: Header
                Severity: 3 - Normal
              Item Group: Source code
                  Status: None
                 Privacy: Public
             Assigned to: vvm
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Off-by-one error. No space for ending '\0':

c=malloc(strlen(tmp->v));
      if(c==NULL) error(EXIT_FAILURE, errno, "space for c in setuprename");
strcpy(c, tmp->v);




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48642>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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