Lubomir I. Ivanov
643f404036
Divelogs.de: prevent undefined behaviour
...
prepare_dives_for_divelogs() did a silly thing, which I was
responsible for. When populating 'tempfile' we benefit
from QString, but then return a pointer to a local variable
(char *) without alocating it on the heap. This resulted
in undefined behavior, as we don't know the lifespan of that
local memory on the stack.
Patch fixes that by using strdup() and freeing the memory
when/if needed.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-12-10 22:35:13 +01:00
..
2013-09-02 05:57:08 -03:00
2013-05-18 09:49:37 -07:00
2013-11-30 09:28:42 -08:00
2013-10-03 12:13:48 -07:00
2013-11-29 12:11:12 -08:00
2013-11-30 09:28:42 -08:00
2013-11-02 03:37:31 +01:00
2013-12-04 15:27:09 -08:00
2013-11-21 15:54:28 -08:00
2013-11-30 12:01:32 -08:00
2013-11-30 09:28:42 -08:00
2013-10-15 04:37:31 -07:00
2013-11-30 12:01:32 -08:00
2013-12-09 15:51:17 +02:00
2013-12-09 15:51:17 +02:00
2013-12-10 05:22:01 +01:00
2013-12-09 22:47:28 +01:00
2013-12-04 15:49:55 -08:00
2013-12-10 08:09:42 +01:00
2013-12-08 06:33:46 +01:00
2013-11-30 12:01:32 -08:00
2013-12-03 18:48:17 -08:00
2013-12-02 09:44:55 -08:00
2013-10-15 04:23:43 -07:00
2013-09-16 19:21:13 -03:00
2013-11-22 09:44:28 -08:00
2013-11-02 17:10:30 +01:00
2013-09-18 23:23:04 -03:00
2013-10-15 04:37:31 -07:00
2013-12-10 06:25:30 +01:00
2013-12-03 13:01:16 -08:00
2013-12-03 13:01:16 -08:00
2013-12-09 07:51:40 +01:00
2013-12-05 07:31:29 -08:00
2013-12-09 07:51:40 +01:00
2013-11-30 17:35:55 +02:00
2013-10-15 09:49:12 -07:00
2013-12-07 12:06:33 -08:00
2013-12-06 09:49:05 -08:00
2013-04-13 20:44:02 -07:00
2013-04-13 20:44:02 -07:00
2013-12-08 16:17:52 +01:00
2013-12-06 11:56:00 -08:00
2013-12-08 16:18:00 +01:00
2013-12-04 15:52:21 +02:00
2013-12-04 15:52:21 +02:00
2013-12-08 09:41:42 +01:00
2013-12-04 15:57:53 -08:00
2013-11-30 18:56:25 +02:00
2013-10-03 12:13:48 -07:00
2013-11-29 11:02:15 -08:00
2013-12-09 22:47:28 +01:00
2013-12-09 22:47:28 +01:00
2013-12-07 06:49:52 -08:00
2013-11-30 12:01:32 -08:00
2013-11-30 09:28:42 -08:00
2013-11-30 09:28:42 -08:00
2013-11-30 09:24:59 -08:00
2013-11-30 09:24:59 -08:00
2013-12-10 22:35:13 +01:00
2013-12-09 18:40:52 +01:00
2013-11-22 07:32:53 -08:00
2013-11-13 11:58:47 +09:00
2013-11-29 11:02:15 -08:00
2013-11-07 16:32:23 +09:00
2013-11-02 17:10:34 +01:00
2013-12-10 05:52:26 +01:00