Page MenuHome

Cycles: Remove use of sprintf() in MD5 code
ClosedPublic

Authored by Sergey Sharybin (sergey) on Nov 3 2022, 3:10 PM.

Details

Summary

The new Xcode declares the sprintf() function deprecated and
suggests to sue snprintf() as a safer alternative.

This change actually moves away from any formatted printing and
uses inlined byte-to-hex-string conversion which is also safe
and is (unmesurably) faster.

Diff Detail

Repository
rB Blender

Event Timeline

Sergey Sharybin (sergey) requested review of this revision.Nov 3 2022, 3:10 PM
Sergey Sharybin (sergey) created this revision.
This revision is now accepted and ready to land.Nov 3 2022, 3:14 PM