-
Notifications
You must be signed in to change notification settings - Fork 26
Maintainance cleanup #20
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
Conversation
25311e6 to
7f50b96
Compare
|
Related question, was there significant reason to use Any objections against dropping |
|
On Mon, Feb 22, 2016 at 06:40:15AM -0800, Jan Pokorný wrote:
Where? |
|
For instance: Then, e.g., |
|
On Mon, Feb 22, 2016 at 06:48:56AM -0800, Jan Pokorný wrote:
OK. I assume that you mean using 'unsigned char' in general, |
|
On 22/02/16 06:52 -0800, Dejan Muhamedagic wrote:
Yep (didn't want the description to get too hairy).
Will do. The only cases that would matter is when such Jan (Poki) |
|
On Mon, Feb 22, 2016 at 07:01:38AM -0800, Jan Pokorný wrote:
I couldn't find any such case, but please check. Thanks! |
7491fd8 to
6936d18
Compare
6936d18 to
1b7a442
Compare
|
@dmuhamedagic Can I start rehashing this PR with respect to your objections? |
|
Yes, please.
|
Note that, furthermore, cl_log is not in "libgpl" (namesake does exist, though: Game Programming Library), but rather in "libplumb" that is currently referenced in src/Makefile.am directly, anyway.
...as this is the only reference configure script uses. References: http://rpm.org/gitweb?p=rpm.git;a=commit;h=6c4b0fc (~2007)
Respective code removed as of f5700b4
Also make use of typedef'd boothc_site.
Some cases might have still been omitted.
Or more frankly, where compiler complains (which is a good approximation) + human spotted eligible parts. Also make cast from/to "xmlChar *" explicit.
|
So currently I offer a new round for the pull with the following changes:
|
Or more frankly, where compiler complains, which is a good approximation.
| if (!notime) | ||
| get_time(&a->update_ts); | ||
|
|
||
| assert(strnlen(name, BOOTH_NAME_LEN) < BOOTH_NAME_LEN); |
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'd rather have booth continue to run, even with a truncated attribute name. iirc, this was not unpremeditated.
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.
OK, I understand that it might be too easy (accidentally or not) to push booth layer out of the function with a single crafted geo attribute in CIB/crm_ticket one-liner. So does turning that into warning sounds better? Then, we should likely warn also in case of trying to set/delete such a troublesome (too long in either name or value) attribute being provided by the user to geostore command.
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.
On Tue, Apr 19, 2016 at 06:26:49AM -0700, Jan Pokorný wrote:
@@ -274,8 +277,9 @@ int store_geo_attr(struct ticket_config *tk, const char *name, char *val, int no
if (!notime)
get_time(&a->update_ts);
- assert(strnlen(name, BOOTH_NAME_LEN) < BOOTH_NAME_LEN);
OK, I understand that it might be too easy (accidentally or not) to push booth layer out of the function with a single crafted geo attribute in CIB/crm_ticket one-liner. So does turning that into warning sounds better? Then, we should likely warn also in case of trying to set/delete such a troublesome (too long in either name or value) attribute being provided by the user to geostore command.
Yes, warning seems to be better.
No description provided.