Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

read() and write() do not behave as documented

Open
#2 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

  • #3 by @mfiore02 — closed without merging

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
embedded-iot

Research direction

Start by locating the read() and write() implementations corresponding to the declarations in ATParser.h. Compare their handling of partial stream operations with the documented return values; done means operations that transfer fewer bytes than requested are handled according to the documented count-or--1 contract rather than treated as errors solely because the count differs.

Written by the indexing model from the issue text.

Description

enhancement

read() and write() do not behave as documented in ATParser.h.

/**
* Write an array of bytes to the underlying stream
*
* @param data the array of bytes to write
* @param size number of bytes to write
* @return number of bytes written or -1 on failure
*/
int write(const char *data, int size);

/**
* Read an array of bytes from the underlying stream
*
* @param data the destination for the read bytes
* @param size number of bytes to read
* @return number of bytes read or -1 on failure
*/
int read(char *data, int size);

Existing implementation will error out if bytes read/written do not exactly match size parameter.

Dominant language
C++
Stars
39
Forks
24
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ARMmbed/ATParser

All issues in ARMmbed/ATParser

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.