Reply to post: ...memory constraints... ...70 full copies of 4 different OpenSSL versions...

Huawei savaged by Brit code review board over pisspoor dev practices

maffski

...memory constraints... ...70 full copies of 4 different OpenSSL versions...

I can see an optimisation coming on.

#define SAFE_LIBRARY_memcpy(dest, destMax, src, count) memcpy(dest, src, count)

Seems a sensible first step to me - makes it easy to see that you've got rid of all the memcpy references quickly and you can then replace it with a safe function and start the massive amount of testing that's going to be required to validate such a fundamental change.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019