File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
namespace/resource_module/resource_module
main_test/resources/S_multi_process/side_effect Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -2072,7 +2072,6 @@ typedef struct DtwResourceModule{
20722072
20732073
20742074 DtwResource * (* sub_resource_ensuring_not_exist )(DtwResource * self ,const char * format , ...);
2075- DtwSchema * (* new_schema )(DtwResource * self , const char * format , ...);
20762075 DtwResource * (* sub_resource_next )(DtwResource * self , const char * end_path );
20772076 DtwResource * (* sub_resource_now )(DtwResource * self , const char * end_path );
20782077
@@ -5707,11 +5706,12 @@ char * calc_sha_256_from_file_returning_string(const char *filename)
57075706
57085707
57095708char * dtw_base64_encode (unsigned char * data , long input_length ){
5709+ if (data == NULL ) return NULL ;
5710+
57105711 size_t output_length = 4 * ((input_length + 2 ) / 3 );
57115712
57125713 char * encoded_data = (char * )malloc (output_length + 1 );
57135714
5714- if (encoded_data == NULL ) return NULL ;
57155715
57165716 long i , j ;
57175717 for (i = 0 , j = 0 ; i < input_length ; ) {
Original file line number Diff line number Diff line change 11
22
33char * dtw_base64_encode (unsigned char * data , long input_length ){
4+ if (data == NULL ) return NULL ;
5+
46 size_t output_length = 4 * ((input_length + 2 ) / 3 );
57
68 char * encoded_data = (char * )malloc (output_length + 1 );
79
8- if (encoded_data == NULL ) return NULL ;
910
1011 long i , j ;
1112 for (i = 0 , j = 0 ; i < input_length ; ) {
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ typedef struct DtwResourceModule{
4242
4343
4444 DtwResource * (* sub_resource_ensuring_not_exist )(DtwResource * self ,const char * format , ...);
45- DtwSchema * (* new_schema )(DtwResource * self , const char * format , ...);
4645 DtwResource * (* sub_resource_next )(DtwResource * self , const char * end_path );
4746 DtwResource * (* sub_resource_now )(DtwResource * self , const char * end_path );
4847
Original file line number Diff line number Diff line change @@ -2072,7 +2072,6 @@ typedef struct DtwResourceModule{
20722072
20732073
20742074 DtwResource * (* sub_resource_ensuring_not_exist )(DtwResource * self ,const char * format , ...);
2075- DtwSchema * (* new_schema )(DtwResource * self , const char * format , ...);
20762075 DtwResource * (* sub_resource_next )(DtwResource * self , const char * end_path );
20772076 DtwResource * (* sub_resource_now )(DtwResource * self , const char * end_path );
20782077
@@ -5707,11 +5706,12 @@ char * calc_sha_256_from_file_returning_string(const char *filename)
57075706
57085707
57095708char * dtw_base64_encode (unsigned char * data , long input_length ){
5709+ if (data == NULL ) return NULL ;
5710+
57105711 size_t output_length = 4 * ((input_length + 2 ) / 3 );
57115712
57125713 char * encoded_data = (char * )malloc (output_length + 1 );
57135714
5714- if (encoded_data == NULL ) return NULL ;
57155715
57165716 long i , j ;
57175717 for (i = 0 , j = 0 ; i < input_length ; ) {
Original file line number Diff line number Diff line change 1- 2
2- 0
313
4- 4
5- 6
2+ 1
3+ 8
649
7- 5
5+ 0
6+ 2
877
9- 8
10- 1
8+ 6
9+ 5
10+ 4
You can’t perform that action at this time.
0 commit comments