mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix invalid argument enumeration when there are >=3 arguments
This bug had no impact since currently no macro has more than 2 arguments. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@ -186,7 +186,7 @@ class PSAMacroEnumerator:
|
|||||||
for value in argument_lists[i][1:]:
|
for value in argument_lists[i][1:]:
|
||||||
arguments[i] = value
|
arguments[i] = value
|
||||||
yield self._format_arguments(name, arguments)
|
yield self._format_arguments(name, arguments)
|
||||||
arguments[i] = argument_lists[0][0]
|
arguments[i] = argument_lists[i][0]
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
raise Exception('distribute_arguments({})'.format(name)) from e
|
raise Exception('distribute_arguments({})'.format(name)) from e
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user