Academia Vocational Fixing the Vulnerabilities in C Daemon Function Project there are vulnerabilities in the code that need to be fixed. after securing it

Academia Vocational Fixing the Vulnerabilities in C Daemon Function Project there are vulnerabilities in the code that need to be fixed. after securing it you need to provide a word document explaining:1- what you did2- how you did it 3- why you chose these methods. 4- for each fix a screenshot is a must. ? clang -std=c11 -Wall -Wextra original.c
original.c:58:20: warning: comparison of integers of different signs: ‘ssize_t’
(aka ‘long’) and ‘size_t’ (aka ‘unsigned long’) [-Wsign-compare]
while (byteswrote < len) ~~~~~~~~~~ ^ ~~~ original.c:83:19: warning: comparison of integers of different signs: 'ssize_t' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare] while (bytesread < len) ~~~~~~~~~ ^ ~~~ original.c:106:8: warning: unused variable 'p' [-Wunused-variable] char *p; ^ original.c:193:50: warning: unused parameter 'action' [-Wunused-parameter] void listArticles(int sock, FILE *logfile, char *action) ^ original.c:217:29: warning: unused parameter 'sock' [-Wunused-parameter] void command(FILE *log, int sock, char *action) ^ original.c:223:29: warning: unused parameter 'sock' [-Wunused-parameter] void addUser(FILE *log, int sock, char *action) ^ original.c:328:2: warning: 'snprintf' size argument is too large; destination buffer has size 512, but size argument is 1023 [-Wfortify-source] snprintf(search, sizeof(userfile)-1, "stat %s`ls %s | grep %s`", USERPATH, USERPATH, userfile); ^ original.c:365:7: warning: unused variable 'type' [-Wunused-variable] char type = 0; ^ original.c:523:23: warning: unused parameter 'signumber' [-Wunused-parameter] void spawnhandler(int signumber) ^ original.c:597:2: warning: implicit declaration of function 'daemon' is invalid in C99 [-Wimplicit-function-declaration] daemon(0,0); ^ original.c:582:14: warning: unused parameter 'argc' [-Wunused-parameter] int main(int argc, char *argv[]) ^ original.c:582:26: warning: unused parameter 'argv' [-Wunused-parameter] int main(int argc, char *argv[]) ^ 12 warnings generated. ? gcc -std=c11 -Wall -Wextra original.c original.c: In function 'writeSock': original.c:58:20: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [Wsign-compare] 58 | while (byteswrote < len) | ^ original.c: In function 'readSock': original.c:83:19: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [Wsign-compare] 83 | while (bytesread < len) | ^ original.c: In function 'writeArticle': original.c:106:8: warning: unused variable 'p' [-Wunused-variable] 106 | char *p; | ^ original.c: In function 'listArticles': original.c:193:50: warning: unused parameter 'action' [-Wunused-parameter] 193 | void listArticles(int sock, FILE *logfile, char *action) | ~~~~~~^~~~~~ original.c: In function 'command': original.c:217:29: warning: unused parameter 'sock' [-Wunused-parameter] 217 | void command(FILE *log, int sock, char *action) | ~~~~^~~~ original.c: In function 'addUser': original.c:223:29: warning: unused parameter 'sock' [-Wunused-parameter] 223 | void addUser(FILE *log, int sock, char *action) | ~~~~^~~~ original.c: In function 'adminFunctions': original.c:244:9: warning: variable 'len' set but not used [-Wunused-but-setvariable] 244 | size_t len; | ^~~ original.c: In function 'userFunctions': original.c:271:9: warning: variable 'len' set but not used [-Wunused-but-setvariable] 271 | size_t len; | ^~~ original.c: In function 'findarg': original.c:365:7: warning: unused variable 'type' [-Wunused-variable] 365 | char type = 0; | ^~~~ original.c: In function 'spawnhandler': original.c:523:23: warning: unused parameter 'signumber' [-Wunused-parameter] 523 | void spawnhandler(int signumber) | ~~~~^~~~~~~~~ original.c: In function 'main': original.c:597:2: warning: implicit declaration of function 'daemon' [-Wimplicitfunction-declaration] 597 | daemon(0,0); | ^~~~~~ original.c:582:14: warning: unused parameter 'argc' [-Wunused-parameter] 582 | int main(int argc, char *argv[]) | ~~~~^~~~ original.c:582:26: warning: unused parameter 'argv' [-Wunused-parameter] 582 | int main(int argc, char *argv[]) | ~~~~~~^~~~~~ original.c: In function 'authenticate': original.c:328:61: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 990 [-Wformat-truncation=] 328 | snprintf(search, sizeof(userfile)-1, "stat %s`ls %s | grep %s`", USERPATH, USERPATH, userfile); | ^~ ~~~~~~~~ original.c:328:2: note: 'snprintf' output between 35 and 1058 bytes into a destination of size 1023 328 | snprintf(search, sizeof(userfile)-1, "stat %s`ls %s | grep %s`", USERPATH, USERPATH, userfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ original.c:336:36: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 1015 [-Wformat-truncation=] 336 | snprintf(path, sizeof(path)-1, "%s%s", USERPATH, userfile); | ^~ ~~~~~~~~ original.c:336:2: note: 'snprintf' output between 9 and 1032 bytes into a destination of size 1023 336 | snprintf(path, sizeof(path)-1, "%s%s", USERPATH, userfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Purchase answer to see full attachment

Don't use plagiarized sources. Get Your Custom Essay on
Academia Vocational Fixing the Vulnerabilities in C Daemon Function Project there are vulnerabilities in the code that need to be fixed. after securing it
Just from $13/Page
Order Essay
Homework On Time
Calculate the Price of your PAPER Now
Pages (550 words)
Approximate price: -

Why Choose Us

Top quality papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional academic writers

We have hired a team of professional writers experienced in academic and business writing. Most of them are native speakers and PhD holders able to take care of any assignment you need help with.

Free revisions

If you feel that we missed something, send the order for a free revision. You will have 10 days to send the order for revision after you receive the final paper. You can either do it on your own after signing in to your personal account or by contacting our support.

On-time delivery

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & confidential

We use several checkers to make sure that all papers you receive are plagiarism-free. Our editors carefully go through all in-text citations. We also promise full confidentiality in all our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

You are welcome to choose your academic level and the type of your paper. Our academic experts will gladly help you with essays, case studies, research papers and other assignments.

Admissions

Admission help & business writing

You can be positive that we will be here 24/7 to help you get accepted to the Master’s program at the TOP-universities or help you get a well-paid position.

Reviews

Editing your paper

Our academic writers and editors will help you submit a well-structured and organized paper just on time. We will ensure that your final paper is of the highest quality and absolutely free of mistakes.

Reviews

Revising your paper

Our academic writers and editors will help you with unlimited number of revisions in case you need any customization of your academic papers