Is this code safe? Why?

Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

sjg2312

Thread Starter
Joined
Nov 29, 2021
Messages
2
int bof (char *str, int size) {
char *buffer = (char *) malloc (size); strcpy (buffer, str);
return 1;
}
 

eddie5659

Moderator
Malware Specialist
Joined
Mar 19, 2001
Messages
37,357
Hiya and welcome

What's this code in relation to? A bit more information is needed with regards to what this code is for, program etc.

Thanks

eddie
 
Status
This thread has been Locked and is not open to further replies. The original thread starter may use the Report button to request it be reopened but anyone else with a similar issue should start a New Thread. Watch our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top