Page MenuHome

Fix build warning
ClosedPublic

Authored by Richard Antalik (ISS) on May 18 2021, 3:59 PM.

Details

Summary

Value of the size argument in strncat is too large, might lead to a
buffer overflow.

Change the argument to be the free space in the destination buffer
minus the terminating null byte.

Introduced in 5368859a669d

Diff Detail

Repository
rB Blender

Event Timeline

Richard Antalik (ISS) requested review of this revision.May 18 2021, 3:59 PM
Richard Antalik (ISS) created this revision.
This revision is now accepted and ready to land.May 18 2021, 4:08 PM
This revision was automatically updated to reflect the committed changes.