Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netserver: use mkstemp to create/open debug file
This is another attempt to address the primary issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413658 similar to the original patch proposed: https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=413658;filename=CVE-2007-1444.patch;msg=35
- Loading branch information
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be some problems with this:
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zman - thanks for checking - obviously I didn't see that on my corp linux machine (debian based). What do I have to do to reproduce this?
Can you post a patch to fix this? (I'd be happy to review and/or test this)
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, building this results in loads of warnings. Right now I'm only concerned about the error.
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah - pulling the ToT and I see it too. weird. I didn't see this before. I'll post a fix shortly.
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not great with C, so I'm not sure how much help I can be here. I was trying to compile master for my own use and ran into these 2 errors, which appear to come from this commit. Compile was done on Fedora 27 with gcc 7.3.1. Similar results with clang 5.0.1.
Second error seems to just be a simple wrong case: FileName vs Filename.
I'm not sure about the first error, but searching on "error: assignment to expression with array type" suggests assigning a value to an existing array like that isn't allowed. Probably need to be doing something with pointers, or use strcpy?
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct on both counts. I've posted a pull request here:
grundlerchromium#1
but I'm doing something wrong since it's showing up against my own fork instead HPs original. sigh
I'll sort that out and post a proper pull request.
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#11
5380b1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And my apologies - this was simple failure on my part.