Skip to content
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

Table Services Task Pipe Function Incorrectly Handling Commands #247

Closed
skliper opened this issue Sep 30, 2019 · 9 comments
Closed

Table Services Task Pipe Function Incorrectly Handling Commands #247

skliper opened this issue Sep 30, 2019 · 9 comments
Labels
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented Sep 30, 2019

When calling the appropriate command message handler, the Table Services TaskPipe function is failing to pass the entire message to the command processing function, resulting in a truncated message.

@skliper skliper added this to the 6.6.0 milestone Sep 30, 2019
@skliper skliper self-assigned this Sep 30, 2019
@skliper skliper added the bug label Sep 30, 2019
@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Imported from trac issue 216. Created by sstrege on 2017-10-26T13:16:18, last modified: 2019-03-05T14:58:28

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by jphickey on 2017-10-27 09:26:07:

I believe this is like 271:

{{{
/* All checks have passed, call the appropriate message handler */
CmdStatus = (CFE_TBL_CmdHandlerTbl[CmdIndx].MsgProcFuncPtr)(&MessagePtr->Byte[CFE_SB_CMD_HDR_SIZE]);
}}}

Should be just simply:

{{{
CmdStatus = (CFE_TBL_CmdHandlerTbl[CmdIndx].MsgProcFuncPtr)(MessagePtr);
}}}

Because this function takes a void* it was never flagged as a type mismatch. TBL services is the only subsystem that works this way.

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by jphickey on 2017-10-27 09:29:38:

Since it is just a one liner I went ahead and pushed a commit with that change.

Commit [changeset:25d7de3] branch trac-216-tbl-services-fix

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by sstrege on 2017-10-27 09:33:37:

Funny, I had pushed the same fix yesterday, but my comment was never posted.

Duplicate commit: [changeset:3c9aa94]

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by sstrege on 2017-10-27 09:34:04:

Recommend/approve either commit

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by cdknight on 2017-10-27 10:44:48:

recommend approve

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by glimes on 2017-10-27 12:36:15:

recommend accept (the answer to my concern was "yes")

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by jphickey on 2017-10-27 12:39:09:

Correct. The intent is that the complete message should be passed through, including header(s), not just the payload.

@skliper
Copy link
Contributor Author

skliper commented Sep 30, 2019

Trac comment by jhageman on 2019-03-05 14:58:28:

Milestone renamed

@skliper skliper closed this as completed Sep 30, 2019
@skliper skliper removed their assignment Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant