-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid read of size 4 #16
Comments
Yes, this is an issue with memory allocation of an array that may run out of bound in some cases. A fix is to be pushed in the coming weeks with the next release of the library. |
Ok, good to know you are aware of that 👍. I also faced a memory leak in canny detector which sometimes leaks 128 bytes and sometimes not ? I am still trying to discover how exactly but it is happening around line 966 in |
Is it reproducible from the same code snippet? Could you share your valgring output, any gdb stack trace?
…-----Original Message-----
From: "Pierre-André Mudry" <notifications@github.com>
To: symisc/sod <sod@noreply.github.com>
Cc: Symisc Systems <chm@symisc.net>, Comment <comment@noreply.github.com>
Sent: Thu, 22 Aug 2019 8:34
Subject: Re: [symisc/sod] Invalid read of size 4 (#16)
Ok, good to know you are aware of that 👍.
I also faced a memory leak in canny detector which sometimes leaks 128 bytes and sometimes not ? I am still trying to discover how exactly but it is happening around line 966 in `SysSetPut`
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#16 (comment)
|
For the memory leak, I am sorry the problem was on my side. I was not always releasing the lines while doing hough lines detection. Everything fine there. Nice work by the way ! |
Any idea when the next library release will be coming out ? |
Yes, it should be released in late October, early November of this year. You will be notified from Github if you are a watcher of the library.
Symisc Systems, SUARL
…-----Original Message-----
From: "Pierre-André Mudry" <notifications@github.com>
To: symisc/sod <sod@noreply.github.com>
Cc: Symisc Systems <chm@symisc.net>, Comment <comment@noreply.github.com>
Sent: Tue, 03 Sep 2019 13:42
Subject: Re: [symisc/sod] Invalid read of size 4 (#16)
Any idea when the next library release will be coming out ?
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#16 (comment)
|
Any news on the new library release ? Cheers |
The release is scheduled for January 2020 due time constraint and developers focusing on a global scale product powered by SOD. We have managed to fix the canny edge issue and adding new image processing interfaces. Stay tune! |
Make sure to update to the latest version of SOD which fix the canny edge detection memory leak issue https://sod.pixlab.io/changelog.html |
Memory checking a program with
valgrind
returns an invalid read of size 4 in at line 10533 ofsod.c
.Minimal example code :
Valgrind output after compilation in Ubuntu 18.04 amd 64 :
The text was updated successfully, but these errors were encountered: