1
0
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:
Sébastien Helleu
2025-05-05 20:25:41 +02:00
parent 00a873dda0
commit d0568dce79
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -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
+2 -2
View File
@@ -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;