Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Will Delay Interval For Bridge Connection

You have pasted badly-formatted code, so I'm not going to even try to
read it.

In general, if you add/change code, and start getting problems not
obviously related to the change, it is highly likely that you have
introduced an arbitrary memory overwrite, use-after-free, or something
like that.

So I would suggest that

1) you convene some other people from your organization to do a thorough
code inspection, tracing all allocation/deallocation and pointer use.

2) if you free memory, you set any pointer that pointed to it to NULL,
in more or less the same line as in

   free(p); p = NULL;

3) you run valgrind and static analyzers on unmodified mosquitto and
with your change.

Attachment: signature.asc
Description: PGP signature


Back to the top