Correct me if I'm wrong, but isn't it usually the case that on x86 the frame pointer and passed function parameters would be located "above" (lower on the stack) the allocated buffer? So how is it...
Type: Posts; User: Azimuth
Correct me if I'm wrong, but isn't it usually the case that on x86 the frame pointer and passed function parameters would be located "above" (lower on the stack) the allocated buffer? So how is it...
Hi all,
I have a piece of code I'm supposed to identify a security issue with
int copy(char *in)
{
char d[128];
if (strlen(in) > sizeof(d))
return -1;
C# does have pointers, but they should be placed in unsafe blocks and compiled with a special flag.
Delegates are C#'s rough equivalent to C/C++ function pointers.
I need to access the serial numbers of several devices including, the HDD, motherboard, memory, NIC, etc...
In a thread I previously posted, I was redirected to diskid32, which was a lot of help;...
Ok, so this is what I changed:
// In the class definition
string getPersonName();
// into
const string& getPersonName();
I'm currently doing a summer session in university and I'm taking a course called "Introduction to computer science II" which deals with OOP, so we still didn't reach that point yet (I skipped...
The getPersonName() function is supposed to return the person's name, and it is defaulted to an empty string in the constructor, so is it better if I use the string class as you pointed out?
And...
When I said "worked" for the second question, I meant that it gave correct results.
Hi all,
1) In a problem I have to solve, it is required that I create a class with one of the functions in it that returns the total cost of all objects instantiated from that class. Here's the...