Re: [PATCH] d3drm: Retreive mesh name at loading time. Implement GetName and SetName. (try 5) (resend)
9 May
2012
9 May
'12
9:55 a.m.
Christian Costa <titan.costa(a)gmail.com> writes:
Try 5: Use a growing buffer to store name.
I don't think a growing buffer makes sense for this.
+ if (name) + { + *size = min(*size, This->name_size); + memcpy(name, This->name, *size); + /* Make sure we have the terminating 0 in case of truncation */ + name[*size] = 0;
Buffer overflow. -- Alexandre Julliard julliard(a)winehq.org
4967
Age (days ago)
4967
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard