mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 06:16:40 +02:00
core: fix integer overflow with decimal numbers in calculation of expression
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# WeeChat ChangeLog
|
||||
|
||||
## Version 4.6.3 (under dev)
|
||||
|
||||
### Fixed
|
||||
|
||||
- core: fix integer overflow with decimal numbers in calculation of expression
|
||||
|
||||
## Version 4.6.2 (2025-04-18)
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -336,9 +336,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