mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 22:36:38 +02:00
core: fix integer overflow with decimal numbers in calculation of expression
This commit is contained in:
@@ -19,6 +19,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
- core: fix write of weechat.log to stdout with `weechat-headless --stdout` ([#2247](https://github.com/weechat/weechat/issues/2247))
|
||||
- core: add refresh of window title on buffer switch, when option weechat.look.window_title is set
|
||||
- core: consider all keys are safe in cursor context ([#2244](https://github.com/weechat/weechat/issues/2244))
|
||||
- core: fix integer overflow with decimal numbers in calculation of expression
|
||||
- irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ([#2241](https://github.com/weechat/weechat/issues/2241))
|
||||
- perl: fix build when multiplicity is not available ([#2243](https://github.com/weechat/weechat/issues/2243))
|
||||
|
||||
|
||||
@@ -338,9 +338,9 @@ calc_expression (const char *expr)
|
||||
struct t_arraylist *list_values, *list_ops;
|
||||
const char *ptr_expr, *ptr_expr2;
|
||||
char str_result[64], *ptr_operator, *operator;
|
||||
int index_op, decimals;
|
||||
int index_op;
|
||||
enum t_calc_symbol last_symbol;
|
||||
double value, factor, *ptr_value;
|
||||
double value, factor, decimals, *ptr_value;
|
||||
|
||||
list_values = NULL;
|
||||
list_ops = NULL;
|
||||
|
||||
Reference in New Issue
Block a user