vendor/bc: import version 6.2.1
This fixes one bug in the history editing functions.
This commit is contained in:
parent
e7017237c9
commit
3c2ba19f6b
@ -11,6 +11,12 @@ right after, which was embarrassing.
|
||||
This list is sorted by the first version a bug exists in, not the last it
|
||||
existed in.
|
||||
|
||||
* In versions `1.1.0` until `6.2.0` (inclusive) of `bc` and `dc`, there is a
|
||||
out of bounds read and write in history when pressing ctrl+r (or any other
|
||||
unused letter) then inserting two characters.
|
||||
|
||||
The first version without this bug is `6.2.1`.
|
||||
|
||||
* In versions `3.0.0` until `6.0.1` (inclusive) of `bc` and `dc`, there is a
|
||||
double-free on `SIGINT` when using command-line expressions with `-e` and
|
||||
`-f`. This was caused by not properly ending a jump series.
|
||||
|
4
NEWS.md
4
NEWS.md
@ -1,5 +1,9 @@
|
||||
# News
|
||||
|
||||
## 6.2.1
|
||||
|
||||
This is a production release with one bug fix for a memory bug in history.
|
||||
|
||||
## 6.2.0
|
||||
|
||||
This is a production release with a new feature and a few bug fixes.
|
||||
|
@ -37,6 +37,6 @@
|
||||
#define BC_VERSION_H
|
||||
|
||||
/// The current version.
|
||||
#define VERSION 6.2.0
|
||||
#define VERSION 6.2.1
|
||||
|
||||
#endif // BC_VERSION_H
|
||||
|
@ -1788,6 +1788,7 @@ bc_history_printCtrl(BcHistory* h, unsigned int c)
|
||||
// Pop the string.
|
||||
bc_vec_npop(&h->buf, sizeof(str));
|
||||
bc_vec_pushByte(&h->buf, '\0');
|
||||
h->pos = 0;
|
||||
|
||||
if (c != BC_ACTION_CTRL_C && c != BC_ACTION_CTRL_D)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user