Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6895411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:54:18+00:00 2026-05-27T06:54:18+00:00

It looks like the Properties.load() happily loads in binary garbage unless it finds an

  • 0

It looks like the Properties.load() happily loads in binary garbage unless it finds an invalid \uxxxx escape character. Is there a way to be more strict? I just looked at the docs for the text format of properties files, and I’m confused how to tell if a .properties file is valid.


edit: where I’m coming from with this: I figured if I pointed my application a 10MB binary file, that it would reject it. The 10MB file did get rejected, but only because of the \uxxxx characters.

I guess I could create a filter on the input stream to limit at some “sane” amount like 1MB, and filter out any key/value pairs where the key doesn’t match an acceptable pattern. But I was hoping that it might have some minimal structure to reject grossly corrupted files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:54:19+00:00Added an answer on May 27, 2026 at 6:54 am

    Properties files are supposed to be a generic format. It is the application’s responsability to ensure that each individual property has a sane value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looks like there is no Load event for usercontrol on the CF. I'm used
It looks like SVN properties are stored in the local Working Copy folder, not
Looks like here in StackOveflow there is a group of F# enthusiasts. I'd like
Looks like dynamic memory allocation without garbage collection is a way to disaster. Dangling
I am using jQuery.load() to render a partial view. This part looks like this:
I have a class with a bunch of properties that look like this: public
I have a number of mappers that look like this: mapper(Photo,photo_table, properties = {
Looks like my only option is to create a mutatant child of the tree
Looks like while( condition ) { //do stuff } is completely equivalent to for(
Looks like ExpressionTrees compiler should be near with the C# spec in many behaviors,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.