Access violation when encoded base64 is too big libcurl c++

  access-violation, c++, email-attachments, libcurl

I’m tryin’ to send base64 encoded image via email and works fine if base64 is short, for example

R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=

The problem begins when i pass big base64 string to function. The size of my image is 201kB.
I load this image from hard drive, next loads to vector with opencv and encode with that code.


cv::Mat image = cv::imread("file.png");
std::vector<uchar> buffer;
buffer.resize(static_cast<size_t>(image.rows) * static_cast<size_t>(image.cols));
cv::imencode(".png", image, buffer);
std::string encoding;

Base64* b64 = new Base64{};
std::string sName(reinterpret_cast<char const*>(buffer.data()), buffer.size());

b64->Encode(sName, &encoding);

Sending email file

static const char *payload_text[BUFSIZ] = {nullptr};

struct upload_status {
    int lines_read;
};

static size_t payload_source(void* ptr, size_t size, size_t nmemb, void *userp) {
    struct upload_status *upload_ctx = (struct upload_status*)userp;
    const char *data = "";

    if ((size == 0) || (nmemb == 0) || ((size * nmemb) < 1)) {
        return 0;
    }

    data = payload_text[upload_ctx->lines_read];

    if (data) {
        size_t len = strlen(data);
        memcpy(ptr, data, len);
        upload_ctx->lines_read++;

        return len;
    }

    return 0;
}


int sendemail(std::string subject, std::string body, const char* image_base64) {
    CURL *curl = nullptr;
    CURLcode res = CURLE_OK;

    struct curl_slist *recipients = nullptr;
    struct upload_status upload_ctx;

    std::ostringstream stringStream;
    stringStream << "Subject: ";
    stringStream << subject.c_str();
    stringStream << "rn";


    std::string payload_subject = stringStream.str();


    if (image_base64 == nullptr) {
        const char* new_payload[] = {
            "To: " TO "rn",
            "From: " FROM " rn",
            payload_subject.c_str(),
            "User-Agent: " USER_AGENT "rn",
            "rn",
            body.c_str(),
            NULL
        };

        memcpy(&payload_text, new_payload, sizeof new_payload);
    }
    else {
        const char* new_payload[] = {
            "To: " TO "rn",
            "From: " FROM "(Key47 log sender)rn",
            payload_subject.c_str(),
            "User-Agent: " USER_AGENT "rn",
            "MIME-Version: 1.0rn",
            "Content-Type: multipart/mixed;rn",
            " boundary="------------030203080101020302070708"rn",
            "rnThis is a multi-part message in MIME format.rn",
            "--------------030203080101020302070708rn",
            "Content-Type: text/plain; charset=utf-8; format=flowedrn",
            "Content-Transfer-Encoding: 7bitrn",
            "rn", /* empty line to divide headers from body, see RFC5322 */
            "rn",
            "--------------030203080101020302070708rn",
            "Content-Type: image/jpeg; name=screenshot.jpgrn",
            "Content-Transfer-Encoding: base64rn"
            "Content-Disposition: attachment;filename="screenshot.jpg"rn",
            "rn",
            image_base64,
            "rn",
            "--------------030203080101020302070708--rn",
            NULL
        };

        OutputDebugStringW(L"11");

        memcpy(&payload_text, new_payload, sizeof new_payload);
    }
   

    upload_ctx.lines_read = 0;
    curl = curl_easy_init();
    if (curl) {
        curl_easy_setopt(curl, CURLOPT_USERNAME, mail_username);
        curl_easy_setopt(curl, CURLOPT_PASSWORD, mail_password);

        curl_easy_setopt(curl, CURLOPT_URL, mail_url);
        curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)(CURLUSESSL_ALL));

        curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);

        recipients = curl_slist_append(recipients, TO);
        curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);

        curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
        curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
        curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);

        res = curl_easy_perform(curl);

        if (res != CURLE_OK)
            fprintf(stderr, "curl_easy_perform() failed: %sn",
                curl_easy_strerror(res));

        curl_easy_cleanup(curl);
    }
    return (int)res;
}

I tried to debug that code and gives me access violation during execution this line

curl = curl_easy_init();

When i put base64 like that:

sendemail("Subject", "", 
        "iVBORw0KGgoAAAANSUhEUgAAASQAAAC3CAIAAAA0HrTiAAAwrUlEQVR42u2deSBU3RvHHy1EsoyQskxkK0WS1GudlKWdVLK1F1oQRWpiWqikqLTnpfyilTatk6UiSkQpIkVknUFEveX3xwxmNDNGmLGcz18zz5x7zrl35jvPc59zzj08sr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BA8enp63O4DAtEvGMTPz8/tPiAQ/QIeBQUFbvcBgegXDPr58ycju/qK3Wu1MJB/xzngVhO3O4lA9AUGCgsznElR+op4+3aRpLn1dIE7z3K43UsEog/AMhuZUdZHFxYhEFwApf4RCA7BWmyFpCpRiQnc7iMC0Sdgds9GofQVsXLihp2rp0sWEV+VcruvCESvZhDLT9VX7F4El52cMrjdTQSi98M6jJQRxZDKXnO7jwhEnwAlSBAIDoHEhkBwCJZiU5foTw8aQyC6l0ECAgwfC6Vms33ZRBEoeOBB5BcQ6GitCATiD3hmzpzJ7T4gEP2CQdXV1dzuAwLRLxhUUlLC7T4gEP0ClI1EIDgEEhsCwSGQ2BAIDvF/TNpnhl73pyIAAAAASUVORK5CYII==");

Everything is okay, but i need to send attachment from variable.

Source: Windows Questions C++

LEAVE A COMMENT