use of "readline" in conky source code
I've recently gotten into the kick of inspecting source code on my system for bugs and vulnerabilities. Picked conky to start with, basically just because I thought it would be smaller and easier to understand. Anyway, I ran flawfinder on it, and the first thing that popped up was this:
Code:
./core.c:99: [5] (race) readlink: Code:
/* strip a leading /dev/ if any, following symlinks first So, a few concerns come to mind: 1. Race condition? Is this a good place to be calling readlink? 2. Necessary? What is wrong with simply using the path to the symbolic link? 3. Bad error handling? Notice that, if readlink returns -1 (error) then dev_name simply forgets about the symbolic link and returns the modified version of the original path. However, READLINK(2) indicates that there are a quite a number of reasons that a readlink call might fail: Code:
RETURN VALUE Anyway, before I go throwing my ignorant bug reports at the developer, I was curious for feedback. |
From the Conky home page --> Join us in #conky on irc.freenode.net to discuss Conky. You probably missed that :o.
Why don't you go there and see what they say. They wrote the code, maybe they have some insight. |
Quote:
1. Ask question 2. Wait for 10 minutes. 3. Ask question again 4. Wait for 2 hours 5. Ask question again 6. Wait for 3 hours 7. Ask question again 8. Log out and uninstall IRC client in frustration. :banghead: |
I agree, some IRC channels can be slow. But, how is that different than asking a question. Waiting two days. Getting an answer you don't seem to like. Now what? Uninstall your web browser in frustration? ;) (I jest, of course).
How about trying the Conky mailing list? How about fixing the code and submitting a patch? You posted at LQ looking for feedback, so I'm giving my feedback. Your initial post here was thoughtful (IMHO), thus I could conclude that a bug report will be thoughtful as well. I'm simply suggesting you spend a little more time attempting to discuss it with the Conky devs. You may get no where, but it follows the general guidelines found in link #4 in my signature. Making the attempt is one thing that sets a good FLOSS user apart from a noob that submits ignorant bug reports. Anyway, my two cents. |
All times are GMT -5. The time now is 05:21 AM. |