]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
9 years agoCID 1104354: The high byte of c is always 0, so don't bother shifting.
Arran Cudbard-Bell [Fri, 26 May 2017 13:33:28 +0000 (09:33 -0400)] 
CID 1104354: The high byte of c is always 0, so don't bother shifting.

9 years agoCID 1020958: Fix double unlock
Arran Cudbard-Bell [Fri, 26 May 2017 13:28:39 +0000 (09:28 -0400)] 
CID 1020958: Fix double unlock

9 years agoCID 720453: Don't cast, so we restrict the range of values to the minimum and maximum...
Arran Cudbard-Bell [Fri, 26 May 2017 13:26:51 +0000 (09:26 -0400)] 
CID 720453: Don't cast, so we restrict the range of values to the minimum and maximum indecies of the array

Hopefully coverity is smart enough to figure that out... Otherwise I guess we're checking the that uint8_t can't be bigger than UINT8_MAX :/

9 years agocheck return code
Alan T. DeKok [Fri, 26 May 2017 13:24:40 +0000 (09:24 -0400)] 
check return code

CID #1400026

9 years agowe mean to ignore the return value
Alan T. DeKok [Fri, 26 May 2017 13:22:04 +0000 (09:22 -0400)] 
we mean to ignore the return value

CID #1400023

9 years agocheck return code of read()
Alan T. DeKok [Fri, 26 May 2017 13:21:11 +0000 (09:21 -0400)] 
check return code of read()

CID #1400021

9 years agoignore return code.
Alan T. DeKok [Fri, 26 May 2017 13:19:43 +0000 (09:19 -0400)] 
ignore return code.

CID #1400018

9 years agowe ignore the return code
Alan T. DeKok [Fri, 26 May 2017 13:18:06 +0000 (09:18 -0400)] 
we ignore the return code

CID #1400017

9 years agocall request_data_get() to remove arguments to trigger function.
Alan T. DeKok [Fri, 26 May 2017 13:17:07 +0000 (09:17 -0400)] 
call request_data_get() to remove arguments to trigger function.

CID #1358901

9 years agoWe now have better checks for bad SSL linking.
Alan T. DeKok [Fri, 26 May 2017 13:09:44 +0000 (09:09 -0400)] 
We now have better checks for bad SSL linking.

CID #1358897

9 years agosuppress output if there's no log.output
Alan T. DeKok [Fri, 26 May 2017 13:08:53 +0000 (09:08 -0400)] 
suppress output if there's no log.output

CID #1358896

9 years agocheck username, too.
Alan T. DeKok [Fri, 26 May 2017 13:04:23 +0000 (09:04 -0400)] 
check username, too.

CID #1358893

9 years agoremove unnecessary check.
Alan T. DeKok [Fri, 26 May 2017 13:01:31 +0000 (09:01 -0400)] 
remove unnecessary check.

CID #1358883

9 years agoeap_tls_data was already checked.
Alan T. DeKok [Fri, 26 May 2017 12:54:44 +0000 (08:54 -0400)] 
eap_tls_data was already checked.

CID #1339404

9 years agoLie about **
Arran Cudbard-Bell [Fri, 26 May 2017 13:18:33 +0000 (09:18 -0400)] 
Lie about **

9 years agoCast to quiet static analysis
Arran Cudbard-Bell [Fri, 26 May 2017 12:01:53 +0000 (08:01 -0400)] 
Cast to quiet static analysis

9 years agoCID 1409876: False positive
Arran Cudbard-Bell [Fri, 26 May 2017 02:05:50 +0000 (22:05 -0400)] 
CID 1409876: False positive

9 years agoCID 1409875: Check data first before deref
Arran Cudbard-Bell [Fri, 26 May 2017 02:03:58 +0000 (22:03 -0400)] 
CID 1409875: Check data first before deref

9 years agoCID 1409874: Always call va_end
Arran Cudbard-Bell [Fri, 26 May 2017 02:02:46 +0000 (22:02 -0400)] 
CID 1409874: Always call va_end

9 years agoCID 1409873: Don’t close the FD twice
Arran Cudbard-Bell [Fri, 26 May 2017 02:01:53 +0000 (22:01 -0400)] 
CID 1409873: Don’t close the FD twice

9 years agoCID 1409872: Always call va_end
Arran Cudbard-Bell [Fri, 26 May 2017 02:00:45 +0000 (22:00 -0400)] 
CID 1409872: Always call va_end

9 years agoCID 1409871: Check request_setup was successful
Arran Cudbard-Bell [Fri, 26 May 2017 01:59:28 +0000 (21:59 -0400)] 
CID 1409871: Check request_setup was successful

9 years agoCID 1409869: Check fr_pair_alloc
Arran Cudbard-Bell [Fri, 26 May 2017 01:57:10 +0000 (21:57 -0400)] 
CID 1409869: Check fr_pair_alloc

9 years agoCID 1409868: Check return of cf_data_find
Arran Cudbard-Bell [Fri, 26 May 2017 01:55:29 +0000 (21:55 -0400)] 
CID 1409868: Check return of cf_data_find

9 years agoCID 1409867: Missed break
Arran Cudbard-Bell [Fri, 26 May 2017 01:52:07 +0000 (21:52 -0400)] 
CID 1409867: Missed break

9 years ago CID 1409866: Missed break
Arran Cudbard-Bell [Fri, 26 May 2017 01:48:43 +0000 (21:48 -0400)] 
 CID 1409866: Missed break

9 years agoCID 1409865: Remove dead code
Arran Cudbard-Bell [Fri, 26 May 2017 01:47:36 +0000 (21:47 -0400)] 
CID 1409865: Remove dead code

9 years agoCID 1409864: Use the bool to check for multi
Arran Cudbard-Bell [Fri, 26 May 2017 01:44:45 +0000 (21:44 -0400)] 
CID 1409864: Use the bool to check for multi

9 years agoCID 1409863: our_err is no longer used
Arran Cudbard-Bell [Fri, 26 May 2017 01:40:08 +0000 (21:40 -0400)] 
CID 1409863:  our_err is no longer used

9 years agoCID 1409862: Missed check for NULL original packet
Arran Cudbard-Bell [Fri, 26 May 2017 01:35:50 +0000 (21:35 -0400)] 
CID 1409862: Missed check for NULL original packet

9 years agoCID 140986: Check return code of cf_pair_parse
Arran Cudbard-Bell [Fri, 26 May 2017 01:24:23 +0000 (21:24 -0400)] 
CID 140986: Check return code of cf_pair_parse

9 years agoCID 1409860: Can’t use bounds checks on 64 bit integers
Arran Cudbard-Bell [Fri, 26 May 2017 01:21:17 +0000 (21:21 -0400)] 
CID 1409860: Can’t use bounds checks on 64 bit integers

9 years agoCID 1409859: Check error code of fr_radius_packet_send
Arran Cudbard-Bell [Fri, 26 May 2017 01:18:22 +0000 (21:18 -0400)] 
CID 1409859: Check error code of fr_radius_packet_send

9 years agoCID 1409858: Fix typo
Arran Cudbard-Bell [Fri, 26 May 2017 01:14:09 +0000 (21:14 -0400)] 
CID 1409858: Fix typo

9 years agoMore formatting
Arran Cudbard-Bell [Thu, 25 May 2017 03:16:26 +0000 (23:16 -0400)] 
More formatting

9 years agoDynamically allocate modcall stack state
Arran Cudbard-Bell [Thu, 25 May 2017 03:13:20 +0000 (23:13 -0400)] 
Dynamically allocate modcall stack state

9 years agoFormatting ’n inlining
Arran Cudbard-Bell [Thu, 25 May 2017 03:12:26 +0000 (23:12 -0400)] 
Formatting ’n inlining

9 years agoUse normal return codes
Arran Cudbard-Bell [Thu, 25 May 2017 22:11:51 +0000 (18:11 -0400)] 
Use normal return codes

9 years agoFix eap_peap_verify check
Arran Cudbard-Bell [Thu, 25 May 2017 22:08:24 +0000 (18:08 -0400)] 
Fix eap_peap_verify check

which wasn't actually incorrect, but rightly tripped PVS studio.  Seems the published draft doesn't actually match what we get in the tunnel.

9 years agoRename macros so it's clear which ones refer to EAP codes
Arran Cudbard-Bell [Thu, 25 May 2017 21:54:10 +0000 (17:54 -0400)] 
Rename macros so it's clear which ones refer to EAP codes

9 years agomemset_s might not be available
Arran Cudbard-Bell [Thu, 25 May 2017 21:15:17 +0000 (17:15 -0400)] 
memset_s might not be available

9 years agoand yet more -V512 false positives
Arran Cudbard-Bell [Thu, 25 May 2017 20:30:28 +0000 (16:30 -0400)] 
and yet more -V512 false positives

9 years ago...and more V512 false positives
Arran Cudbard-Bell [Thu, 25 May 2017 20:30:15 +0000 (16:30 -0400)] 
...and more V512 false positives

9 years agoIgnore false positives in EAP sim code
Arran Cudbard-Bell [Thu, 25 May 2017 20:30:03 +0000 (16:30 -0400)] 
Ignore false positives in EAP sim code

We should probably just disable -V512, it's really stupid.

9 years agoFix scope, and use secure erase in mppe_keys
Arran Cudbard-Bell [Thu, 25 May 2017 20:29:38 +0000 (16:29 -0400)] 
Fix scope, and use secure erase in mppe_keys

We should probably have a secret flag for attributes to ensure they get secure erased...

9 years agoUnsetting indexes by calling SSL_set_ex_data with NULL is OK
Arran Cudbard-Bell [Thu, 25 May 2017 20:29:03 +0000 (16:29 -0400)] 
Unsetting indexes by calling SSL_set_ex_data with NULL is OK

9 years agoUse correct buffer lengths in rlm_cram
Arran Cudbard-Bell [Thu, 25 May 2017 20:28:23 +0000 (16:28 -0400)] 
Use correct buffer lengths in rlm_cram

9 years agoFix potential buffer overrun?
Arran Cudbard-Bell [Thu, 25 May 2017 20:28:07 +0000 (16:28 -0400)] 
Fix potential buffer overrun?

9 years agoIgnore false positives in tacacs
Arran Cudbard-Bell [Thu, 25 May 2017 20:27:54 +0000 (16:27 -0400)] 
Ignore false positives in tacacs

9 years agoIgnore stupid false positive in proto_detail.c
Arran Cudbard-Bell [Thu, 25 May 2017 20:27:41 +0000 (16:27 -0400)] 
Ignore stupid false positive in proto_detail.c

9 years agos/el/event_list/
Arran Cudbard-Bell [Thu, 25 May 2017 20:27:28 +0000 (16:27 -0400)] 
s/el/event_list/

9 years agoIgnore false positives in udpfromto.c
Arran Cudbard-Bell [Thu, 25 May 2017 20:27:17 +0000 (16:27 -0400)] 
Ignore false positives in udpfromto.c

9 years agoPVS studio won't know about talloc_array_length... and it's more efficient too
Arran Cudbard-Bell [Thu, 25 May 2017 19:51:46 +0000 (15:51 -0400)] 
PVS studio won't know about talloc_array_length... and it's more efficient too

9 years agoUnderflow is ok
Arran Cudbard-Bell [Thu, 25 May 2017 19:50:09 +0000 (15:50 -0400)] 
Underflow is ok

9 years agoCompare in_len to size of packet structure not void *
Arran Cudbard-Bell [Thu, 25 May 2017 19:49:06 +0000 (15:49 -0400)] 
Compare in_len to size of packet structure not void *

9 years agoEnsure t->username is set
Arran Cudbard-Bell [Thu, 25 May 2017 19:48:49 +0000 (15:48 -0400)] 
Ensure t->username is set

9 years agoMove assignments out of conditions
Arran Cudbard-Bell [Thu, 25 May 2017 19:41:33 +0000 (15:41 -0400)] 
Move assignments out of conditions

9 years agoCheck packet allocation immediately
Arran Cudbard-Bell [Thu, 25 May 2017 19:28:23 +0000 (15:28 -0400)] 
Check packet allocation immediately

9 years agoIgnore buffer underflow
Arran Cudbard-Bell [Thu, 25 May 2017 19:28:07 +0000 (15:28 -0400)] 
Ignore buffer underflow

9 years agoshhhh pvs studio
Arran Cudbard-Bell [Thu, 25 May 2017 19:27:56 +0000 (15:27 -0400)] 
shhhh pvs studio

9 years agoRemove double checking of condition
Arran Cudbard-Bell [Thu, 25 May 2017 19:27:28 +0000 (15:27 -0400)] 
Remove double checking of condition

9 years agoLoop condition is useless
Arran Cudbard-Bell [Thu, 25 May 2017 19:25:55 +0000 (15:25 -0400)] 
Loop condition is useless

9 years agoRemove erroneous assert in fr_request_to_state
Arran Cudbard-Bell [Thu, 25 May 2017 19:25:02 +0000 (15:25 -0400)] 
Remove erroneous assert in fr_request_to_state

9 years agoRename globals in radclient.c
Arran Cudbard-Bell [Thu, 25 May 2017 19:24:31 +0000 (15:24 -0400)] 
Rename globals in radclient.c

9 years agoRename globals in process.c
Arran Cudbard-Bell [Thu, 25 May 2017 19:24:18 +0000 (15:24 -0400)] 
Rename globals in process.c

9 years agoHmm this check just seems kinda broken
Arran Cudbard-Bell [Thu, 25 May 2017 19:23:47 +0000 (15:23 -0400)] 
Hmm this check just seems kinda broken

9 years agoFormatting, and false positives
Arran Cudbard-Bell [Thu, 25 May 2017 19:10:43 +0000 (15:10 -0400)] 
Formatting, and false positives

9 years agoYou're an odd type cast
Arran Cudbard-Bell [Thu, 25 May 2017 18:31:44 +0000 (14:31 -0400)] 
You're an odd type cast

9 years agoProbably indeed was mistake
Arran Cudbard-Bell [Thu, 25 May 2017 18:21:34 +0000 (14:21 -0400)] 
Probably indeed was mistake

9 years agoOnly call things on session->ssl if it's not null
Arran Cudbard-Bell [Thu, 25 May 2017 18:20:49 +0000 (14:20 -0400)] 
Only call things on session->ssl if it's not null

9 years agoApp data never used anywhere, and was NULL anyway‽
Arran Cudbard-Bell [Thu, 25 May 2017 18:14:33 +0000 (14:14 -0400)] 
App data never used anywhere, and was NULL anyway‽

9 years agoPVS studio is stupid
Arran Cudbard-Bell [Thu, 25 May 2017 18:12:00 +0000 (14:12 -0400)] 
PVS studio is stupid

9 years agoFix comparators
Arran Cudbard-Bell [Thu, 25 May 2017 18:08:02 +0000 (14:08 -0400)] 
Fix comparators

9 years agocond_eval not used yet
Arran Cudbard-Bell [Thu, 25 May 2017 18:07:43 +0000 (14:07 -0400)] 
cond_eval not used yet

9 years agoReduce scope of p so it can't be used after buffer goes out of scope
Arran Cudbard-Bell [Thu, 25 May 2017 18:02:43 +0000 (14:02 -0400)] 
Reduce scope of p so it can't be used after buffer goes out of scope

9 years agoAssert first
Arran Cudbard-Bell [Thu, 25 May 2017 18:00:28 +0000 (14:00 -0400)] 
Assert first

9 years agoCheck we have a reply before checking its code
Arran Cudbard-Bell [Thu, 25 May 2017 17:55:28 +0000 (13:55 -0400)] 
Check we have a reply before checking its code

9 years agoCheck for Null fr_log_fp
Arran Cudbard-Bell [Thu, 25 May 2017 17:53:08 +0000 (13:53 -0400)] 
Check for Null fr_log_fp

9 years agoFix issues in the test utilities
Arran Cudbard-Bell [Thu, 25 May 2017 17:50:57 +0000 (13:50 -0400)] 
Fix issues in the test utilities

9 years agoUse isdigit instead of strtoul if we're just discarding the result
Arran Cudbard-Bell [Thu, 25 May 2017 17:41:51 +0000 (13:41 -0400)] 
Use isdigit instead of strtoul if we're just discarding the result

9 years agoFix order of assert
Arran Cudbard-Bell [Thu, 25 May 2017 17:32:24 +0000 (13:32 -0400)] 
Fix order of assert

9 years agoMonth check should use a different iterator
Arran Cudbard-Bell [Thu, 25 May 2017 17:30:38 +0000 (13:30 -0400)] 
Month check should use a different iterator

9 years agoWe do actually want to hash the pointer, not the data
Arran Cudbard-Bell [Thu, 25 May 2017 17:22:16 +0000 (13:22 -0400)] 
We do actually want to hash the pointer, not the data

9 years agoCan't goto finish if we're raising a signal
Arran Cudbard-Bell [Thu, 25 May 2017 17:12:44 +0000 (13:12 -0400)] 
Can't goto finish if we're raising a signal

9 years agoUse correct format for 64bit integers in worker.c
Arran Cudbard-Bell [Thu, 25 May 2017 17:11:37 +0000 (13:11 -0400)] 
Use correct format for 64bit integers in worker.c

9 years agoWhen we're localizing a header, copy the number of bytes in the header, not the numbe...
Arran Cudbard-Bell [Thu, 25 May 2017 17:08:41 +0000 (13:08 -0400)] 
When we're localizing a header, copy the number of bytes in the header, not the number of bytes in a void *

9 years agoFix PVS studio issues in channel.c
Arran Cudbard-Bell [Thu, 25 May 2017 17:04:09 +0000 (13:04 -0400)] 
Fix PVS studio issues in channel.c

9 years agoUse correct format for 64bit integers in time.c
Arran Cudbard-Bell [Thu, 25 May 2017 17:00:47 +0000 (13:00 -0400)] 
Use correct format for 64bit integers in time.c

9 years agoUse correct format for 64bit integers in atomic_queue.c
Arran Cudbard-Bell [Thu, 25 May 2017 16:58:56 +0000 (12:58 -0400)] 
Use correct format for 64bit integers in atomic_queue.c

9 years agoFix pvs studio pedantry in jlibtool.c
Arran Cudbard-Bell [Thu, 25 May 2017 16:52:36 +0000 (12:52 -0400)] 
Fix pvs studio pedantry in jlibtool.c

9 years agoAllow rlm_mruby to build, just remove its dependencies in travis
Arran Cudbard-Bell [Thu, 25 May 2017 16:46:59 +0000 (12:46 -0400)] 
Allow rlm_mruby to build, just remove its dependencies in travis

Because travis is still one major LTS version behind current *sigh*.

9 years agoAlloc a pooled object for the stack, so we can use mutable frame extensions without...
Arran Cudbard-Bell [Wed, 24 May 2017 23:08:45 +0000 (19:08 -0400)] 
Alloc a pooled object for the stack, so we can use mutable frame extensions without leaking request pool memory

9 years agoCompact bools in the stack frame into a bit field
Arran Cudbard-Bell [Wed, 24 May 2017 23:07:59 +0000 (19:07 -0400)] 
Compact bools in the stack frame into a bit field

9 years agoFR_TLS_EX_IDENTITY is actualy a char **
Arran Cudbard-Bell [Wed, 24 May 2017 23:07:28 +0000 (19:07 -0400)] 
FR_TLS_EX_IDENTITY is actualy a char **

Fix tls_validate_cert_cb to treat it as such.

9 years agoAllow error and write callbacks to be passed into unlang_event_fd_add
Arran Cudbard-Bell [Wed, 24 May 2017 21:23:51 +0000 (17:23 -0400)] 
Allow error and write callbacks to be passed into unlang_event_fd_add

9 years agoRename unlang_action to unlang_signal in some places
Arran Cudbard-Bell [Wed, 24 May 2017 21:23:36 +0000 (17:23 -0400)] 
Rename unlang_action to unlang_signal in some places

9 years agocomment out unused code
Alan T. DeKok [Wed, 24 May 2017 21:08:54 +0000 (17:08 -0400)] 
comment out unused code

9 years agoshhh clang scan
Arran Cudbard-Bell [Wed, 24 May 2017 20:59:06 +0000 (16:59 -0400)] 
shhh clang scan

9 years agoSet data in all cases
Arran Cudbard-Bell [Wed, 24 May 2017 20:31:27 +0000 (16:31 -0400)] 
Set data in all cases

9 years agoUse common protocol encoder for RADIUS
Arran Cudbard-Bell [Wed, 24 May 2017 20:23:53 +0000 (16:23 -0400)] 
Use common protocol encoder for RADIUS