home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / utils / bug / 2436 next >
Encoding:
Internet Message Format  |  1993-01-21  |  993 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!mickey.yoshida.nuie.nagoya-u.ac.jp!sasayama
  2. From: sasayama@mickey.yoshida.nuie.nagoya-u.ac.jp (Kaz Sasayama)
  3. Newsgroups: gnu.utils.bug
  4. Subject: textutils-1.4: Macro use bug in src/pr.c
  5. Date: 21 Jan 1993 18:01:58 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 17
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-utils@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301210807.AA22827@minnie.yoshida.nuie.nagoya-u.ac.jp>
  12.  
  13. I found a macro use bug in file src/pr.c of textutils-1.4.  The file
  14. src/pr.c has a line:
  15.  
  16.               if (!ISDIGIT (*++s))
  17.  
  18. in function main, while another file src/system.h defines the macro
  19. `ISDIGIT' as follows.
  20.  
  21. #define ISDIGIT(c) (isascii (c) && isdigit (c))
  22.  
  23. So the pointer `s' is incremented twice if macro `isascii' is defined
  24. by the system.
  25. -----
  26.    * Kaz Sasayama <sasayama@mickey.yoshida.nuie.nagoya-u.ac.jp>.
  27.    * Dept. of Information Engineering, School of Engineering, Nagoya
  28.      University.
  29.  
  30.