Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Parse_MIME fails to parse VCard with pref parameter

オープン
#488 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c
領域
backend

調査の方向性

Reproduce with the given VERSION:4.0 vCard that includes EMAIL;PREF=1; Parse_MIME / yyparse currently returns 0 and succeeds if that parameter is removed. The failing path is generated yacc, so inspect the .y grammar for how EMAIL and PREF parameters are declared rather than the generated C. RFC 6350 section 5.3 describes PREF. Success is a successful parse of this vCard (and similar PREF cases) without changing unrelated cards.

索引モデルが issue の本文から書いたものです。

説明

vCard

Here's the VCARD I use to reproduce the problem:

BEGIN:VCARD
VERSION:4.0
PRODID:-//MailClient.VObject/8.1.1060.0
UID:urn:uuid:1d467b9d-9116-47ca-ba06-f923b5484bc9
REV:20210216T154212Z
FN:Koura
N;SORT-AS=Koura:Koura;;;;
EMAIL;PREF=1:[email protected]
END:VCARD

This causes the yyparse function to return 0

Removing the ;PREF=1 param results in a successful parse.
I tried going through the function in the debugger but since it's generated code it's hard to figure out exactly where the problem lies. I am also not familiar with yacc unfortunately.

Param description in RFC 6350

主要言語
C
スター
366
フォーク
127
平均マージ
16時間 47分
マージ済み PR(30日)
33

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

libical/libical のほかの issue

libical/libical の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。