0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

メールアドレスの企画を見返す用の記事(備忘録)

Posted at

下記はAIの解説

Q、「規格外の長さのメールアドレスを許容すると不都合なこと起きますか?」

1.データベースの制約

  • 多くのDBでは VARCHAR(255) でメールアドレスを格納
  • 長すぎるメールアドレスはDBの制約に違反
  • データ切り捨てやエラーの原因に

2.RFC標準への非準拠

  • メールアドレスの標準仕様(RFC 5321)では:

    • ローカル部(@前): 最大64文字
    • ドメイン部(@後): 最大255文字
  • 標準外のアドレスはメール送信時に問題発生

3.セキュリティリスク

  • 異常に長いメールアドレスはバッファオーバーフローの原因に
  • SQLインジェクションなどの攻撃ベクトルとして使用される可能性

参考記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?