mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-28 18:32:56 +00:00
Forbid aliasing outputs
Aliasing between two outputs is hardly ever useful. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
01af3ddc82
commit
dcd1717f5f
@ -43,8 +43,8 @@
|
|||||||
* Temporaries come last.
|
* Temporaries come last.
|
||||||
* - **Aliasing**: in general, output bignums may be aliased to one or more
|
* - **Aliasing**: in general, output bignums may be aliased to one or more
|
||||||
* inputs. As an exception, parameters that are documented as a modulus value
|
* inputs. As an exception, parameters that are documented as a modulus value
|
||||||
* may not be aliased to an output. Temporaries may not be aliased to
|
* may not be aliased to an output. Outputs may not be aliased to one another.
|
||||||
* any other parameter.
|
* Temporaries may not be aliased to any other parameter.
|
||||||
* - **Overlap**: apart from aliasing of limb array pointers (where two
|
* - **Overlap**: apart from aliasing of limb array pointers (where two
|
||||||
* arguments are equal pointers), overlap is not supported and may result
|
* arguments are equal pointers), overlap is not supported and may result
|
||||||
* in undefined behavior.
|
* in undefined behavior.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user