bc core dumped when a value with between 128 and 255 (mod 256) digits

was entered.

PR:		12550
Submitted by:	Vladimir Tchoukharev chu@gpi.ru
Reviewed by:	Phil Nelson <phil@cs.wwu.edu> (maintainer of bc)
This commit is contained in:
Nick Hibma 1999-07-28 17:58:12 +00:00
parent b9a6a818f5
commit d6e5fcdb70
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49175
2 changed files with 3 additions and 1 deletions

View File

@ -9,3 +9,5 @@ bc 1.0.4
tar xvzf bc-1.0.4.tar.gz
cd bc-1.0.4
cvs import src/contrib/bc BC bc1_0_4
applied patch (PR 12550)

View File

@ -60,7 +60,7 @@ _PROTOTYPE(int yywrap, (void));
/* Variables to help interface readline with bc. */
static char *rl_line = (char *)NULL;
static char *rl_start = (char *)NULL;
static char rl_len = 0;
static int rl_len = 0;
/* Definitions for readline access. */
extern FILE *rl_instream;