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

GNL multi-fd issue #155

Open
Sahbetdin opened this issue Nov 20, 2019 · 4 comments
Open

GNL multi-fd issue #155

Sahbetdin opened this issue Nov 20, 2019 · 4 comments

Comments

@Sahbetdin
Copy link

Hello!

I had following malfunction with my GNL project.
The project was realised with help of linked lists.
Suppose that in main we open two files havinf fd1 and fd2.
Then we get a line from fd1 with help of our function get_next_line.
Then we get another line from fd2.
As a last step we read fd1 till it ends.

I stored remain parts of each file in linked list. For to fd's my linked list had two elements.
The problem with my gnl was that when one file ends up, I freed up all the structure. Instead of that, I should had freed only the given list with fd1.

Moulinette doesn't check that obviously. And the checker does it neither.
But one of peers paid attention to that issue.

Could you take a look into that and make checker check that?
Namely, when one file finishes, is it still possible to read a line from the other file.

Regards,
Mansur /btrifle/

@jgigault
Copy link
Owner

Hello @Sahbetdin
please provide me with the source code of your GNL
that would help me reproduce the issue and improve the checker

@Sahbetdin
Copy link
Author

Sahbetdin commented Dec 22, 2019 via email

@jgigault
Copy link
Owner

Hello @Sahbetdin
Attachments seem to not work with github notification. I understand the puropose of your issue but it would help me if you find a way to send me your code source :-)

@Sahbetdin
Copy link
Author

Sahbetdin commented Dec 26, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants