Re:size_t-to-int vulnerability in Linux’s filesystem layer
by WalterBright on Tuesday July 20, 2021 @01:01PM
(#27896288)
D doesn't allow implicit narrowing conversions. The user has to have an explicit cast, like `cast(int) size`. Cast is made into a keyword so all those explicit conversions can be found with a simple grep.
We consider it best practice to try and organize the types such that explicit casts are minimized.
We consider it best practice to try and organize the types such that explicit casts are minimized.